fix: Enable toggling of insights while document is draft

This commit is contained in:
Tom Moor
2023-07-23 13:06:34 -04:00
parent 404f5ff871
commit 217e53d8b6
6 changed files with 32 additions and 23 deletions

View File

@@ -159,7 +159,7 @@ export const publishDocument = createAction({
}
if (document?.collectionId) {
await document.save({
await document.save(undefined, {
publish: true,
});
stores.toasts.showToast(t("Document published"), {