mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-09-03 04:31:46 +02:00
fix: notes are not refreshed when notebook is deleted
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user