Skip to content

Commit eee9c16

Browse files
committed
feat(fix) Make select labels code more robust
1 parent a7b8a32 commit eee9c16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/directives/form.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ module fng.directives {
6060
var enumInstruction:IEnumInstruction;
6161
if (angular.isArray(scope[fieldInfo.options])) {
6262
enumInstruction = {repeat: fieldInfo.options, value: 'option'};
63-
} else if (angular.isArray(scope[fieldInfo.options].values)) {
63+
} else if (scope[fieldInfo.options] && angular.isArray(scope[fieldInfo.options].values)) {
6464
if (angular.isArray(scope[fieldInfo.options].labels)) {
6565
enumInstruction = {
6666
repeat: fieldInfo.options + '.values',

0 commit comments

Comments
 (0)