@firecms/core 3.0.0-canary.73 → 3.0.0-canary.75
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +5 -2
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +4 -4
- package/src/util/entities.ts +3 -3
package/dist/index.es.js
CHANGED
|
@@ -231,12 +231,15 @@ function hr(e) {
|
|
|
231
231
|
}).reduce((t, r) => ({ ...t, ...r }), {}) : {};
|
|
232
232
|
}
|
|
233
233
|
function Br(e) {
|
|
234
|
-
if (!Qe(e))
|
|
234
|
+
if (!Qe(e)) {
|
|
235
|
+
if (e.defaultValue || e.defaultValue === null)
|
|
236
|
+
return e.defaultValue;
|
|
235
237
|
if (e.dataType === "map" && e.properties) {
|
|
236
238
|
const t = hr(e.properties);
|
|
237
239
|
return Object.keys(t).length === 0 ? void 0 : t;
|
|
238
240
|
} else
|
|
239
|
-
return
|
|
241
|
+
return no(e.dataType);
|
|
242
|
+
}
|
|
240
243
|
}
|
|
241
244
|
function no(e) {
|
|
242
245
|
return e === "string" || e === "number" ? null : e === "boolean" ? !1 : e === "date" ? null : e === "array" ? [] : e === "map" ? {} : null;
|