mirror of
https://github.com/zadam/trilium.git
synced 2025-10-29 17:26:38 +01:00
sync / transaction fixes for recent notes
This commit is contained in:
@@ -21,7 +21,7 @@ const recentNotes = (function() {
|
||||
function addRecentNote(notePath) {
|
||||
setTimeout(() => {
|
||||
// we include the note into recent list only if the user stayed on the note at least 5 seconds
|
||||
if (notePath === noteTree.getCurrentNotePath()) {
|
||||
if (notePath && notePath === noteTree.getCurrentNotePath()) {
|
||||
$.ajax({
|
||||
url: baseApiUrl + 'recent-notes/' + encodeURIComponent(notePath),
|
||||
type: 'PUT',
|
||||
|
||||
Reference in New Issue
Block a user