Skip to content

Build your personal knowledge base with Trilium Notes

fix

azivner9fcafe44d570
diff --git a/public/javascripts/dialogs/jump_to_note.js b/public/javascripts/dialogs/jump_to_note.js
index ccdb36839f..7810f1afc2 100644
--- a/public/javascripts/dialogs/jump_to_note.js
+++ b/public/javascripts/dialogs/jump_to_note.js
@@ -68,12 +68,12 @@ const jumpToNote = (function() {
}
}
else if (action === 'add-current-as-child') {
- treeChanges.cloneNoteTo(noteTree.getCurrentNoteId(), getSelectedNoteId());
+ treeChanges.cloneNoteTo(noteEditor.getCurrentNoteId(), getSelectedNoteId());
dialogEl.dialog("close");
}
else if (action === 'add-selected-as-child') {
- treeChanges.cloneNoteTo(getSelectedNoteId(), noteTree.getCurrentNoteId());
+ treeChanges.cloneNoteTo(getSelectedNoteId(), noteEditor.getCurrentNoteId());
dialogEl.dialog("close");
}
diff --git a/public/javascripts/dialogs/recent_notes.js b/public/javascripts/dialogs/recent_notes.js
index 2f078fa5af..eaa80d95f1 100644
--- a/public/javascripts/dialogs/recent_notes.js
+++ b/public/javascripts/dialogs/recent_notes.js
@@ -109,13 +109,13 @@ const recentNotes = (function() {
}
async function addCurrentAsChild() {
- await treeChanges.cloneNoteTo(noteTree.getCurrentNoteId(), getSelectedNoteId());
+ await treeChanges.cloneNoteTo(noteEditor.getCurrentNoteId(), getSelectedNoteId());
dialogEl.dialog("close");
}
async function addRecentAsChild() {
- await treeChanges.cloneNoteTo(getSelectedNoteId(), noteTree.getCurrentNoteId());
+ await treeChanges.cloneNoteTo(getSelectedNoteId(), noteEditor.getCurrentNoteId());
dialogEl.dialog("close");
}
diff --git a/public/javascripts/note_editor.js b/public/javascripts/note_editor.js
index 9989695974..6716544c9b 100644
--- a/public/javascripts/note_editor.js
+++ b/public/javascripts/note_editor.js
@@ -21,10 +21,6 @@ const noteEditor = (function() {
return currentNote ? currentNote.detail.note_id : null;
}
- function getCurrentNoteLoadTime() {
- return currentNote ? currentNote.loadTime : null;
- }
-
function noteChanged() {
if (noteChangeDisabled) {
return;
@@ -203,7 +199,6 @@ const noteEditor = (function() {
loadNote,
getCurrentNote,
getCurrentNoteId,
- getCurrentNoteLoadTime,
newNoteCreated
};
})();
\ No newline at end of file