mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 19:36:12 +01:00
fixes
This commit is contained in:
@@ -100,15 +100,19 @@ class TabContext extends Component {
|
||||
}
|
||||
}
|
||||
|
||||
noteDeletedListener({noteId}) {
|
||||
if (this.noteId === noteId) {
|
||||
this.noteId = null;
|
||||
this.notePath = null;
|
||||
async entitiesReloadedListener({loadResults}) {
|
||||
if (loadResults.isNoteReloaded(this.noteId)) {
|
||||
const note = await treeCache.getNote(this.noteId);
|
||||
|
||||
this.trigger('tabNoteSwitched', {
|
||||
tabId: this.tabId,
|
||||
notePath: this.notePath
|
||||
});
|
||||
if (note.isDeleted) {
|
||||
this.noteId = null;
|
||||
this.notePath = null;
|
||||
|
||||
this.trigger('tabNoteSwitched', {
|
||||
tabId: this.tabId,
|
||||
notePath: this.notePath
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user