@firecms/core 3.0.0-canary.200 → 3.0.0-canary.201

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
@@ -16675,7 +16675,11 @@ function getInitialEntityValues(collection, path, status, entity, propertyConfig
16675
16675
  });
16676
16676
  const properties = resolvedCollection.properties;
16677
16677
  if ((status === "existing" || status === "copy") && entity) {
16678
- return entity.values ?? getDefaultValuesFor(properties);
16678
+ if (!collection.alwaysApplyDefaultValues) {
16679
+ return entity.values ?? getDefaultValuesFor(properties);
16680
+ } else {
16681
+ return mergeDeep(getDefaultValuesFor(properties), entity.values ?? {});
16682
+ }
16679
16683
  } else if (status === "new") {
16680
16684
  return getDefaultValuesFor(properties);
16681
16685
  } else {