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

@@ -52,7 +52,7 @@ function DocumentPublish({ document }: Props) {
}
document.collectionId = collectionId;
await document.save({ publish: true });
await document.save(undefined, { publish: true });
showToast(t("Document published"), {
type: "success",