mirror of
https://github.com/zadam/trilium.git
synced 2025-11-10 23:35:50 +01:00
feat(views/table): support recursive children update
This commit is contained in:
@@ -259,6 +259,7 @@ class FNote {
|
||||
async getSubtreeNoteIds() {
|
||||
let noteIds: (string | string[])[] = [];
|
||||
for (const child of await this.getChildNotes()) {
|
||||
noteIds.push(child.noteId);
|
||||
noteIds.push(await child.getSubtreeNoteIds());
|
||||
}
|
||||
return noteIds.flat();
|
||||
|
||||
Reference in New Issue
Block a user