fix: flattens locales before versioning published docs #1415

This commit is contained in:
Jacob Fletcher
2022-11-18 14:30:15 -05:00
parent af6a7aa9e8
commit f700f51f2b
2 changed files with 1 additions and 1 deletions

View File

@@ -78,7 +78,6 @@ async function update(incomingArgs: Arguments): Promise<Document> {
}
const shouldSaveDraft = Boolean(draftArg && collectionConfig.versions.drafts);
if (shouldSaveDraft) data._status = 'draft';
// /////////////////////////////////////
// Access

View File

@@ -51,6 +51,7 @@ export const ensurePublishedCollectionVersion = async ({
req,
overrideAccess: true,
showHiddenFields: true,
flattenLocales: false,
});
try {