optimizations and fixes

This commit is contained in:
zadam
2020-12-11 15:24:44 +01:00
parent be543737a9
commit 199d89c1a6
3 changed files with 3 additions and 3 deletions

View File

@@ -22,7 +22,7 @@ function getNotesAndBranchesAndAttributes(noteIds) {
branches.prefix,
branches.isExpanded
FROM param_list
JOIN branches ON param_list.paramId = branches.noteId OR param_list.paramId = branches.parentNoteId
JOIN branches ON param_list.paramId = branches.parentNoteId
JOIN notes AS child ON child.noteId = branches.noteId
WHERE branches.isDeleted = 0`);