fix bug with unresponsive tree after tree reload

This commit is contained in:
zadam 2019-05-28 20:22:16 +02:00
parent 873b60b00d
commit 3fdecee95f
2 changed files with 2 additions and 1 deletions

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{ {
"name": "trilium", "name": "trilium",
"version": "0.32.0-beta", "version": "0.32.1-beta",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
"dependencies": { "dependencies": {

View File

@ -400,6 +400,7 @@ function initFancyTree(tree) {
beforeActivate: (event, data) => { beforeActivate: (event, data) => {
// this is for the case when tree reload has been called and we don't want to // this is for the case when tree reload has been called and we don't want to
if (ignoreNextActivationNoteId && getActiveNode() !== null) { if (ignoreNextActivationNoteId && getActiveNode() !== null) {
ignoreNextActivationNoteId = null;
return false; return false;
} }
}, },