Skip to content

Build your personal knowledge base with Trilium Notes

removed glob.allNoteIds which wasn't used anymore

azivner8a1c477b8a9e
diff --git a/public/javascripts/init.js b/public/javascripts/init.js
index 490c98b12a..de80385892 100644
--- a/public/javascripts/init.js
+++ b/public/javascripts/init.js
@@ -1,7 +1,6 @@
"use strict";
const glob = {
- allNoteIds: [],
activeDialog: null
};
diff --git a/public/javascripts/note_editor.js b/public/javascripts/note_editor.js
index d74180d29f..021cbc9814 100644
--- a/public/javascripts/note_editor.js
+++ b/public/javascripts/note_editor.js
@@ -151,8 +151,6 @@ const noteEditor = (function() {
extraClasses: isProtected ? "protected" : ""
};
- glob.allNoteIds.push(result.note_tree_id);
-
newNoteCreated = true;
if (target === 'after') {
diff --git a/public/javascripts/note_tree.js b/public/javascripts/note_tree.js
index 574f2903b5..4af51b8bae 100644
--- a/public/javascripts/note_tree.js
+++ b/public/javascripts/note_tree.js
@@ -88,8 +88,6 @@ const noteTree = (function() {
childToParents[note.note_id].push(note.note_pid);
}
- glob.allNoteIds = Object.keys(notesMap);
-
return prepareNoteTreeInner('root');
}
diff --git a/public/javascripts/tree_changes.js b/public/javascripts/tree_changes.js
index 07264dac3c..fd56682b96 100644
--- a/public/javascripts/tree_changes.js
+++ b/public/javascripts/tree_changes.js
@@ -56,8 +56,6 @@ const treeChanges = (function() {
node.getParent().renderTitle();
}
- glob.allNoteIds = glob.allNoteIds.filter(e => e !== node.key);
-
recentNotes.removeRecentNote(node.note_tree_id);
let next = node.getNextSibling();