We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 108d22a commit 68e4a70Copy full SHA for 68e4a70
1 file changed
src/directives/schema-form.js
@@ -71,7 +71,8 @@ function($compile, schemaForm, schemaFormDecorators){
71
var schema = scope.schema;
72
var form = scope.initialForm || ['*'];
73
74
- if (form && schema && (lastDigest.form !== form || lastDigest.schema !== schema)) {
+ //The check for schema.type is to ensure that schema is not {}
75
+ if (form && schema && schema.type && (lastDigest.form !== form || lastDigest.schema !== schema)) {
76
lastDigest.schema = schema;
77
lastDigest.form = form;
78
0 commit comments