Browse Source

fix: groups observer dispose

ascarbek 2 năm trước cách đây
mục cha
commit
4b1f45a4be

+ 1 - 0
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();