mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
removed glob.allNoteIds which wasn't used anymore
This commit is contained in:
parent
d98a5b6299
commit
8a1c477b8a
@ -1,7 +1,6 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
const glob = {
|
const glob = {
|
||||||
allNoteIds: [],
|
|
||||||
activeDialog: null
|
activeDialog: null
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -151,8 +151,6 @@ const noteEditor = (function() {
|
|||||||
extraClasses: isProtected ? "protected" : ""
|
extraClasses: isProtected ? "protected" : ""
|
||||||
};
|
};
|
||||||
|
|
||||||
glob.allNoteIds.push(result.note_tree_id);
|
|
||||||
|
|
||||||
newNoteCreated = true;
|
newNoteCreated = true;
|
||||||
|
|
||||||
if (target === 'after') {
|
if (target === 'after') {
|
||||||
|
@ -88,8 +88,6 @@ const noteTree = (function() {
|
|||||||
childToParents[note.note_id].push(note.note_pid);
|
childToParents[note.note_id].push(note.note_pid);
|
||||||
}
|
}
|
||||||
|
|
||||||
glob.allNoteIds = Object.keys(notesMap);
|
|
||||||
|
|
||||||
return prepareNoteTreeInner('root');
|
return prepareNoteTreeInner('root');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -56,8 +56,6 @@ const treeChanges = (function() {
|
|||||||
node.getParent().renderTitle();
|
node.getParent().renderTitle();
|
||||||
}
|
}
|
||||||
|
|
||||||
glob.allNoteIds = glob.allNoteIds.filter(e => e !== node.key);
|
|
||||||
|
|
||||||
recentNotes.removeRecentNote(node.note_tree_id);
|
recentNotes.removeRecentNote(node.note_tree_id);
|
||||||
|
|
||||||
let next = node.getNextSibling();
|
let next = node.getNextSibling();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user