mirror of
https://github.com/zadam/trilium.git
synced 2025-02-24 06:54:44 +08:00
fix root branch
This commit is contained in:
parent
199d89c1a6
commit
35e47f866a
1 changed files with 11 additions and 0 deletions
|
@ -26,6 +26,17 @@ function getNotesAndBranchesAndAttributes(noteIds) {
|
|||
JOIN notes AS child ON child.noteId = branches.noteId
|
||||
WHERE branches.isDeleted = 0`);
|
||||
|
||||
if (noteIds.has('root')) {
|
||||
branches.push({
|
||||
branchId: 'root',
|
||||
noteId: 'root',
|
||||
parentNoteId: 'none',
|
||||
notePosition: 0,
|
||||
prefix: '',
|
||||
isExpanded: true
|
||||
});
|
||||
}
|
||||
|
||||
const attributes = sql.getRows(`
|
||||
SELECT
|
||||
attributes.attributeId,
|
||||
|
|
Loading…
Reference in a new issue