Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
if note doesn't exist we don't try to activate it
azivnerdf69dbb2e199
diff --git a/public/javascripts/messaging.js b/public/javascripts/messaging.jsindex 18a655cb64..6ee4e47b99 100644--- a/public/javascripts/messaging.js+++ b/public/javascripts/messaging.js@@ -5,7 +5,8 @@ const messaging = (function() {let ws = null;function logError(message) {- console.trace(message);+ console.log(message); // needs to be separate from .trace()+ console.trace();if (ws && ws.readyState === 1) {ws.send(JSON.stringify({diff --git a/public/javascripts/note_tree.js b/public/javascripts/note_tree.jsindex d6a950902d..24e29da57d 100644--- a/public/javascripts/note_tree.js+++ b/public/javascripts/note_tree.js@@ -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);}diff --git a/services/sync.js b/services/sync.jsindex c3c05452c2..1b0cf2b4fa 100644--- a/services/sync.js+++ b/services/sync.js@@ -265,7 +265,7 @@ async function checkContentHash(syncContext) {for (const key in hashes) {if (hashes[key] !== resp.hashes[key]) {- allChecksPassed = true;+ allChecksPassed = false;await event_log.addEvent(`Content hash check for ${key} FAILED. Local is ${hashes[key]}, remote is ${resp.hashes[key]}`);