Skip to content

Build your personal knowledge base with Trilium Notes

fix(views/table): not reacting to title changes

Elian Doran3720ab6df6e5
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 4294d32d3a..b6ec8ae133 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<StateInfo> {
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 04580150cf..2882744080 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;
}