Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

fix: delete modal on confirm does not close (#2322)

JimmFly47848cb5dae6
diff --git a/apps/web/src/components/blocksuite/workspace-header/header-right-items/editor-option-menu.tsx b/apps/web/src/components/blocksuite/workspace-header/header-right-items/editor-option-menu.tsx
index a9cdcd6484..75092a21d0 100644
--- a/apps/web/src/components/blocksuite/workspace-header/header-right-items/editor-option-menu.tsx
+++ b/apps/web/src/components/blocksuite/workspace-header/header-right-items/editor-option-menu.tsx
@@ -153,6 +153,7 @@ const PageMenu = () => {
onConfirm={() => {
removeToTrash(pageMeta.id);
toast(t['Moved to Trash']());
+ setOpenConfirm(false);
}}
onCancel={() => {
setOpenConfirm(false);