@firecms/core 3.0.0-canary.74 → 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 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 e.defaultValue || e.defaultValue === null ? e.defaultValue : no(e.dataType);
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;