correctly handle clicks on reference links

This commit is contained in:
zadam
2020-03-23 20:18:54 +01:00
parent cb168218fb
commit a856463173
3 changed files with 9 additions and 3 deletions

View File

@@ -435,7 +435,7 @@ export default class NoteTreeWidget extends TabAwareWidget {
oldActiveNode.setFocus(false);
}
if (this.tabContext && this.tabContext.notePath) {
if (this.tabContext && this.tabContext.notePath && !this.tabContext.note.isDeleted) {
const newActiveNode = await this.getNodeFromPath(this.tabContext.notePath);
if (newActiveNode) {