From 3720ab6df6e5410c0b8367724614d0313719c39b Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Sun, 13 Jul 2025 21:33:47 +0300 Subject: [PATCH] fix(views/table): not reacting to title changes --- apps/client/src/widgets/view_widgets/table_view/index.ts | 8 +++----- apps/client/src/widgets/view_widgets/table_view/rows.ts | 1 - 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/apps/client/src/widgets/view_widgets/table_view/index.ts b/apps/client/src/widgets/view_widgets/table_view/index.ts index 4294d32d3..b6ec8ae13 100644 --- a/apps/client/src/widgets/view_widgets/table_view/index.ts +++ b/apps/client/src/widgets/view_widgets/table_view/index.ts @@ -231,11 +231,9 @@ export default class TableView extends ViewMode { this.#manageColumnUpdate(); } - if (loadResults.getBranchRows().some(branch => branch.parentNoteId === this.parentNote.noteId)) { - this.#manageRowsUpdate(); - } - - if (loadResults.getAttributeRows().some(attr => this.args.noteIds.includes(attr.noteId!))) { + if (loadResults.getBranchRows().some(branch => branch.parentNoteId === this.parentNote.noteId) + || loadResults.getNoteIds().some(noteId => this.args.noteIds.includes(noteId) + || loadResults.getAttributeRows().some(attr => this.args.noteIds.includes(attr.noteId!)))) { this.#manageRowsUpdate(); } diff --git a/apps/client/src/widgets/view_widgets/table_view/rows.ts b/apps/client/src/widgets/view_widgets/table_view/rows.ts index 04580150c..288274408 100644 --- a/apps/client/src/widgets/view_widgets/table_view/rows.ts +++ b/apps/client/src/widgets/view_widgets/table_view/rows.ts @@ -67,6 +67,5 @@ export default function getPromotedAttributeInformation(parentNote: FNote) { type }); } - console.log("Promoted attribute information", info); return info; }