Skip to content

Commit 951c404

Browse files
committed
Fixes angular-schema-form#857
1 parent ceba7d6 commit 951c404

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

dist/json-schema-form-core.js

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/json-schema-form-core.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "json-schema-form-core",
3-
"version": "1.0.0-alpha.3",
3+
"version": "1.0.0-alpha.4",
44
"description": "JSON-Schema and JSON-UI-Schema utilities for form generation.",
55
"main": "dist/json-schema-form-core.js",
66
"scripts": {

src/lib/validate.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export function validate(form, value) {
4545
};
4646

4747
let valueWrap = {};
48-
if (!!value) {
48+
if (typeof value !== 'undefined') {
4949
valueWrap[propName] = value;
5050
};
5151

0 commit comments

Comments
 (0)