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