From eef8b98b627a145c740cbc16596c0f8ceff0ef8e Mon Sep 17 00:00:00 2001 From: Abdullah Atta Date: Fri, 16 Feb 2024 17:33:10 +0500 Subject: [PATCH] web: await notes context refreshing --- apps/web/src/stores/monograph-store.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/web/src/stores/monograph-store.ts b/apps/web/src/stores/monograph-store.ts index 29049c16a..addcab15a 100644 --- a/apps/web/src/stores/monograph-store.ts +++ b/apps/web/src/stores/monograph-store.ts @@ -44,7 +44,7 @@ class MonographStore extends BaseStore { unpublish = async (noteId: string) => { await db.monographs.unpublish(noteId); await this.get().refresh(); - noteStore.refreshContext(); + await noteStore.refreshContext(); }; }