mirror of
https://github.com/zadam/trilium.git
synced 2025-11-14 09:15:50 +01:00
fix collapse tree
This commit is contained in:
@@ -121,7 +121,8 @@ function moveBranchAfterNote(req) {
|
||||
}
|
||||
|
||||
function setExpanded(req) {
|
||||
const {branchId, expanded} = req.params;
|
||||
const {branchId} = req.params;
|
||||
const expanded = parseInt(req.params.expanded);
|
||||
|
||||
if (branchId !== 'root') {
|
||||
sql.execute("UPDATE branches SET isExpanded = ? WHERE branchId = ?", [expanded, branchId]);
|
||||
@@ -137,7 +138,8 @@ function setExpanded(req) {
|
||||
}
|
||||
|
||||
function setExpandedForSubtree(req) {
|
||||
const {branchId, expanded} = req.params;
|
||||
const {branchId} = req.params;
|
||||
const expanded = parseInt(req.params.expanded);
|
||||
|
||||
let branchIds = sql.getColumn(`
|
||||
WITH RECURSIVE
|
||||
|
||||
Reference in New Issue
Block a user