We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8338a2f commit 494fef6Copy full SHA for 494fef6
.changeset/chilled-poems-walk.md
@@ -0,0 +1,5 @@
1
+---
2
+'@blinkk/root-cms': patch
3
4
+
5
+fix: fix sys overwrite when copying files
packages/root-cms/ui/utils/doc.ts
@@ -490,7 +490,7 @@ export async function cmsCreateDoc(
490
};
491
492
// Preserve "sys" values when copying and overwriting a doc.
493
- if (doc.exists() && !options?.overwrite) {
+ if (doc.exists() && options?.overwrite) {
494
const oldData = doc.data();
495
data.sys = {
496
...oldData.sys,
0 commit comments