Skip to content

Commit 120fd76

Browse files
authored
Merge pull request #62 from shadow-identity/bugfix/hasOwnPropertyFix
Fixed two small bugs
2 parents 50bf052 + d75076e commit 120fd76

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/js/brutusin-json-forms.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,7 @@ if (typeof brutusin === "undefined") {
614614
appendChild(patdiv, addButton, s);
615615
if (value) {
616616
for (var p in value) {
617-
if (s.properties.hasOwnProperty(p)) {
617+
if (s.properties && s.properties.hasOwnProperty(p)) {
618618
continue;
619619
}
620620
var r = RegExp(pattern);
@@ -803,7 +803,6 @@ if (typeof brutusin === "undefined") {
803803
} else {
804804
render(null, form, "$", null, null);
805805
}
806-
rendered = true;
807806
if (dependencyMap.hasOwnProperty("$")) {
808807
onDependencyChanged("$");
809808
}

0 commit comments

Comments
 (0)