Skip to content

Commit

Permalink
fix #48
Browse files Browse the repository at this point in the history
  • Loading branch information
idelvall committed Dec 27, 2016
1 parent 55c0bbb commit 43957cb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions dist/js/brutusin-json-forms.js
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ if (typeof brutusin === "undefined") {
option.value = s.oneOf[i];
appendChild(option, textNode, s);
appendChild(input, option, s);
if (value === undefined)
if (value === undefined || value === null)
continue;
if (s.readOnly)
input.disabled = true;
Expand Down Expand Up @@ -606,7 +606,7 @@ if (typeof brutusin === "undefined") {
appendChild(div, addButton, s);
if (value) {
for (var p in value) {
if (s.properties.hasOwnProperty(p)) {
if (s.properties && s.properties.hasOwnProperty(p)) {
continue;
}
if (usedProps.indexOf(p) !== -1) {
Expand Down
Loading

0 comments on commit 43957cb

Please sign in to comment.