diff --git a/frontend/appflowy_tauri/src/appflowy_app/stores/effects/database/database_controller.ts b/frontend/appflowy_tauri/src/appflowy_app/stores/effects/database/database_controller.ts index 226e0b58f6..0ac8986e8d 100644 --- a/frontend/appflowy_tauri/src/appflowy_app/stores/effects/database/database_controller.ts +++ b/frontend/appflowy_tauri/src/appflowy_app/stores/effects/database/database_controller.ts @@ -154,6 +154,7 @@ export class DatabaseController { this.groups.value.forEach((group) => { void group.dispose(); }); + await this.groupsObserver.unsubscribe(); await this.backendService.closeDatabase(); await this.fieldController.dispose(); await this.databaseViewCache.dispose();