diff --git a/frontend/appflowy_tauri/src/appflowy_app/components/_shared/database-hooks/useCell.ts b/frontend/appflowy_tauri/src/appflowy_app/components/_shared/database-hooks/useCell.ts index 0a270c86ef..ff5f0ef07b 100644 --- a/frontend/appflowy_tauri/src/appflowy_app/components/_shared/database-hooks/useCell.ts +++ b/frontend/appflowy_tauri/src/appflowy_app/components/_shared/database-hooks/useCell.ts @@ -30,7 +30,8 @@ export const useCell = (cellIdentifier: CellIdentifier, cellCache: CellCache, fi }, }); - cellController.getCellData(); + // ignore the return value, because we are using the subscription + void cellController.getCellData(); }; return { diff --git a/frontend/appflowy_tauri/src/appflowy_app/stores/effects/database/cell/cell_controller.ts b/frontend/appflowy_tauri/src/appflowy_app/stores/effects/database/cell/cell_controller.ts index 89d9446b05..ee4feafd07 100644 --- a/frontend/appflowy_tauri/src/appflowy_app/stores/effects/database/cell/cell_controller.ts +++ b/frontend/appflowy_tauri/src/appflowy_app/stores/effects/database/cell/cell_controller.ts @@ -55,7 +55,7 @@ export class CellController { }); } - subscribeChanged = async (callbacks: Callbacks) => { + subscribeChanged = (callbacks: Callbacks) => { this.subscribeCallbacks = callbacks; this.cellDataNotifier.observer.subscribe((cellData) => { if (cellData !== null) {