mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 02:45:54 +01:00
if note doesn't exist we don't try to activate it
This commit is contained in:
@@ -412,6 +412,13 @@ const noteTree = (function() {
|
||||
setExpandedToServer(data.node.data.note_tree_id, false);
|
||||
},
|
||||
init: (event, data) => {
|
||||
const noteId = treeUtils.getNoteIdFromNotePath(startNotePath);
|
||||
|
||||
if (noteIdToTitle[noteId] === undefined) {
|
||||
// note doesn't exist so don't try to activate it
|
||||
startNotePath = null;
|
||||
}
|
||||
|
||||
if (startNotePath) {
|
||||
activateNode(startNotePath);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user