mirror of
https://github.com/zadam/trilium.git
synced 2025-11-06 13:26:01 +01:00
fix(views/table): unable to update state for newly created rows
This commit is contained in:
@@ -43,19 +43,9 @@ export default class NoteListRenderer {
|
||||
|
||||
async renderList() {
|
||||
const args = this.args;
|
||||
|
||||
let noteIds: string[];
|
||||
if (this.viewType === "list" || this.viewType === "grid") {
|
||||
noteIds = args.parentNote.getChildNoteIds();
|
||||
} else {
|
||||
noteIds = await args.parentNote.getSubtreeNoteIds();
|
||||
}
|
||||
|
||||
const viewMode = this.#buildViewMode({
|
||||
...args,
|
||||
noteIds
|
||||
});
|
||||
const viewMode = this.#buildViewMode(args);
|
||||
this.viewMode = viewMode;
|
||||
await viewMode.beforeRender();
|
||||
return await viewMode.renderList();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user