Skip to content

Commit 1913041

Browse files
committed
Build fix
1 parent 97aebd3 commit 1913041

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

angular-schema-form-complex-ui.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,15 @@ var ComplexUIController = (function () {
2424
var schemaRef = null;
2525
}
2626
var _defs = _this.directiveScope.form["options"]["definitionsCallback"](schemaRef);
27-
_this.form = _defs["form"];
27+
if ("form" in _defs) {
28+
_this.form = _defs["form"];
29+
}
30+
else if ("complexForm" in _this.directiveScope.form["options"]) {
31+
_this.form = _this.directiveScope.form["options"]["complexForm"];
32+
}
33+
else {
34+
_this.form = ["*"];
35+
}
2836
_this.schema = _defs["schema"];
2937
}
3038
};

angular-schema-form-complex-ui.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)