Skip to content

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

web: await promises

Abdullah Atta6fb8f11d2fd8
diff --git a/apps/web/src/common/dialog-controller.tsx b/apps/web/src/common/dialog-controller.tsx
index afc3bf270..80287b691 100644
--- a/apps/web/src/common/dialog-controller.tsx
+++ b/apps/web/src/common/dialog-controller.tsx
@@ -391,10 +391,10 @@ export function showEditTagDialog(tag: Tag) {
if (!title) return;
await db.tags.add({ id: tag.id, title });
showToast("success", "Tag edited!");
- tagStore.refresh();
- useEditorStore.getState().refreshTags();
- noteStore.refresh();
- appStore.refreshNavItems();
+ await tagStore.refresh();
+ await useEditorStore.getState().refreshTags();
+ await noteStore.refresh();
+ await appStore.refreshNavItems();
perform(true);
}}
/>