Skip to content

Commit 43957cb

Browse files
committed
fix #48
1 parent 55c0bbb commit 43957cb

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

dist/js/brutusin-json-forms.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ if (typeof brutusin === "undefined") {
360360
option.value = s.oneOf[i];
361361
appendChild(option, textNode, s);
362362
appendChild(input, option, s);
363-
if (value === undefined)
363+
if (value === undefined || value === null)
364364
continue;
365365
if (s.readOnly)
366366
input.disabled = true;
@@ -606,7 +606,7 @@ if (typeof brutusin === "undefined") {
606606
appendChild(div, addButton, s);
607607
if (value) {
608608
for (var p in value) {
609-
if (s.properties.hasOwnProperty(p)) {
609+
if (s.properties && s.properties.hasOwnProperty(p)) {
610610
continue;
611611
}
612612
if (usedProps.indexOf(p) !== -1) {

0 commit comments

Comments
 (0)