From 3fdecee95ff5addc57085968833caf3504b2b38f Mon Sep 17 00:00:00 2001 From: zadam Date: Tue, 28 May 2019 20:22:16 +0200 Subject: [PATCH] fix bug with unresponsive tree after tree reload --- package-lock.json | 2 +- src/public/javascripts/services/tree.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/package-lock.json b/package-lock.json index ed5be9082..9431b5bea 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "trilium", - "version": "0.32.0-beta", + "version": "0.32.1-beta", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/src/public/javascripts/services/tree.js b/src/public/javascripts/services/tree.js index 58efee20b..c4d77be6c 100644 --- a/src/public/javascripts/services/tree.js +++ b/src/public/javascripts/services/tree.js @@ -400,6 +400,7 @@ 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) { + ignoreNextActivationNoteId = null; return false; } },