uniforms-bridge-json-schema
Advanced tools
Comparing version 3.10.0-rc.0 to 3.10.0-rc.1
@@ -174,3 +174,10 @@ "use strict"; | ||
if (type === 'object') { | ||
return {}; | ||
const value = {}; | ||
this.getSubfields(name).forEach(key => { | ||
const initialValue = this.getInitialValue(uniforms_1.joinName(name, key)); | ||
if (initialValue !== undefined) { | ||
value[key] = initialValue; | ||
} | ||
}); | ||
return value; | ||
} | ||
@@ -177,0 +184,0 @@ return undefined; |
@@ -172,3 +172,10 @@ import { __rest } from "tslib"; | ||
if (type === 'object') { | ||
return {}; | ||
const value = {}; | ||
this.getSubfields(name).forEach(key => { | ||
const initialValue = this.getInitialValue(joinName(name, key)); | ||
if (initialValue !== undefined) { | ||
value[key] = initialValue; | ||
} | ||
}); | ||
return value; | ||
} | ||
@@ -175,0 +182,0 @@ return undefined; |
{ | ||
"name": "uniforms-bridge-json-schema", | ||
"version": "3.10.0-rc.0", | ||
"version": "3.10.0-rc.1", | ||
"license": "MIT", | ||
@@ -39,5 +39,5 @@ "main": "./cjs/index.js", | ||
"tslib": "^2.2.0", | ||
"uniforms": "^3.10.0-rc.0" | ||
"uniforms": "^3.10.0-rc.1" | ||
}, | ||
"gitHead": "8331cde56232a721c6e48c09f7049ff77c3b1fa9" | ||
"gitHead": "60b75ade23e43f3d2d06dd6767f35ea9742fb856" | ||
} |
@@ -226,3 +226,10 @@ import invariant from 'invariant'; | ||
if (type === 'object') { | ||
return {}; | ||
const value: Record<string, unknown> = {}; | ||
this.getSubfields(name).forEach(key => { | ||
const initialValue = this.getInitialValue(joinName(name, key)); | ||
if (initialValue !== undefined) { | ||
value[key] = initialValue; | ||
} | ||
}); | ||
return value; | ||
} | ||
@@ -229,0 +236,0 @@ |
37343
905
Updateduniforms@^3.10.0-rc.1