This commit is contained in:
zadam 2019-05-29 23:34:23 +02:00
parent 883d726622
commit d48efd1925
2 changed files with 4 additions and 2 deletions

2
package-lock.json generated
View File

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

View File

@ -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;
}