Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

web: await notes context refreshing

Abdullah Attaeef8b98b627a
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<MonographStore> {
unpublish = async (noteId: string) => {
await db.monographs.unpublish(noteId);
await this.get().refresh();
- noteStore.refreshContext();
+ await noteStore.refreshContext();
};
}