From 4b1f45a4be0d8549a55f6537222c56e368f37a70 Mon Sep 17 00:00:00 2001 From: ascarbek Date: Fri, 17 Mar 2023 13:13:04 +0600 Subject: [PATCH] fix: groups observer dispose --- .../appflowy_app/stores/effects/database/database_controller.ts | 1 + 1 file changed, 1 insertion(+) 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();