mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
server-ts: Fix regression
This commit is contained in:
parent
b517b18394
commit
1372cc1cb9
@ -128,7 +128,7 @@ function getNotesAndBranchesAndAttributes(_noteIds: string[] | Set<string>) {
|
||||
}
|
||||
|
||||
function getTree(req: Request) {
|
||||
const subTreeNoteId = req.query.subTreeNoteId === "string" ? req.query.subTreeNoteId : "" || 'root';
|
||||
const subTreeNoteId = typeof req.query.subTreeNoteId === "string" ? req.query.subTreeNoteId : 'root';
|
||||
const collectedNoteIds = new Set<string>([subTreeNoteId]);
|
||||
|
||||
function collect(parentNote: BNote) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user