fix(views/table): unable to update state for newly created rows

This commit is contained in:
Elian Doran
2025-07-14 16:16:55 +03:00
parent cd338085fb
commit caa842cd55
6 changed files with 46 additions and 39 deletions

View File

@@ -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();
}