Skip to content

Build your personal knowledge base with Trilium Notes

FIXME

zadamd48efd192503
diff --git a/package-lock.json b/package-lock.json
index 9431b5beac..8688a21722 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,6 +1,6 @@
{
"name": "trilium",
- "version": "0.32.1-beta",
+ "version": "0.32.2-beta",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
diff --git a/src/public/javascripts/services/tree.js b/src/public/javascripts/services/tree.js
index 958921f258..0c5db32656 100644
--- a/src/public/javascripts/services/tree.js
+++ b/src/public/javascripts/services/tree.js
@@ -404,7 +404,9 @@ function initFancyTree(tree) {
},
beforeActivate: (event, data) => {
// this is for the case when tree reload has been called and we don't want to
- if (ignoreNextActivationNoteId && getActiveNode() !== null) {
+ // FIXME: why do we have this in both beforeActivate and activate?
+ // FIXME: also shouldn't we set ignoreNextActivationNoteId in any case? Otherwise subsequent activation of this note might be one-time ignored
+ if (ignoreNextActivationNoteId && getActiveNode() !== null && getActiveNode().data.noteId === data.node.data.noteId) {
ignoreNextActivationNoteId = null;
return false;
}