mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-29 00:20:04 +01:00
web: close deleted note on sync (#2580)
Co-authored-by: Abdullah Atta <abdullahatta@streetwriters.co>
This commit is contained in:
@@ -151,6 +151,7 @@ class AppStore extends BaseStore {
|
||||
tagStore.refresh();
|
||||
attachmentStore.refresh();
|
||||
monographStore.refresh();
|
||||
await editorstore.refresh();
|
||||
this.refreshNavItems();
|
||||
|
||||
logger.measure("refreshing app");
|
||||
|
||||
@@ -84,6 +84,11 @@ class EditorStore extends BaseStore {
|
||||
});
|
||||
};
|
||||
|
||||
async refresh() {
|
||||
const sessionId = this.get().session.id;
|
||||
if (sessionId && !db.notes.note(sessionId)) await this.clearSession();
|
||||
}
|
||||
|
||||
updateSession = async (item) => {
|
||||
this.set((state) => {
|
||||
state.session.title = item.title;
|
||||
|
||||
Reference in New Issue
Block a user