diff --git a/frontend/appflowy_flutter/lib/plugins/document/application/doc_service.dart b/frontend/appflowy_flutter/lib/plugins/document/application/doc_service.dart index 7c7f09ddf6..cf60a3c474 100644 --- a/frontend/appflowy_flutter/lib/plugins/document/application/doc_service.dart +++ b/frontend/appflowy_flutter/lib/plugins/document/application/doc_service.dart @@ -56,8 +56,8 @@ class DocumentService { Future> closeDocument({ required ViewPB view, }) async { - final payload = CloseDocumentPayloadPB()..documentId = view.id; - final result = await DocumentEventCloseDocument(payload).send(); + final payload = ViewIdPB()..value = view.id; + final result = await FolderEventCloseView(payload).send(); return result; }