Skip to content

Commit

Permalink
Merge pull request #4 from saicheck2233/issue#103
Browse files Browse the repository at this point in the history
issue#103
  • Loading branch information
saicheck2233 authored Jun 27, 2023
2 parents ba4f9ed + 93c14eb commit 5046b4c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/js/brutusin-json-forms.js
Original file line number Diff line number Diff line change
Expand Up @@ -1214,6 +1214,9 @@ if (typeof brutusin === "undefined") {
if (!value) {
if (typeof initialValue !== "undefined" && initialValue !== null) {
value = getInitialValue(id);
if (value === null && typeof s.default !== "undefined") {
value = s.default;
}
} else {
value = s.default;
}
Expand Down

0 comments on commit 5046b4c

Please sign in to comment.