From b48d8d20df254b2e714d051bcfe724dc08116d91 Mon Sep 17 00:00:00 2001 From: thecodrr Date: Tue, 9 Mar 2021 10:15:10 +0500 Subject: [PATCH] fix: notes are not refreshed when notebook is deleted --- apps/web/src/stores/notebook-store.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/web/src/stores/notebook-store.js b/apps/web/src/stores/notebook-store.js index f5861a3db..1da385887 100644 --- a/apps/web/src/stores/notebook-store.js +++ b/apps/web/src/stores/notebook-store.js @@ -1,6 +1,7 @@ import { db } from "../common/db"; import createStore from "../common/store"; import { store as appStore } from "./app-store"; +import { store as noteStore } from "./note-store"; import BaseStore from "./index"; import { showToast } from "../utils/toast"; import { qclone } from "qclone"; @@ -21,6 +22,7 @@ class NotebookStore extends BaseStore { await db.notebooks.delete(id); this.refresh(); appStore.refreshMenuPins(); + noteStore.refresh(); }; pin = async (notebookId) => {