Skip to content

Commit 18f4226

Browse files
dbhobbsdavidlgj
authored andcommitted
options.path is an array, not a funtion
1 parent e702834 commit 18f4226

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/services/schema-form.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ angular.module('schemaForm').provider('schemaForm',
186186
options.lookup[sfPathProvider.stringify(options.path)] = f;
187187

188188
var required = schema.required &&
189-
schema.required.indexOf(options.path(options.path.length - 1)) !== -1;
189+
schema.required.indexOf(options.path[options.path.length - 1]) !== -1;
190190

191191
// The default is to always just create one child. This works since if the
192192
// schemas items declaration is of type: "object" then we get a fieldset.

0 commit comments

Comments
 (0)