Skip to content

Build your personal knowledge base with Trilium Notes

fix(views/table): refresh when relation changes

Elian Doran1ebb70c4d279
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 28f8607093..8bdc077eca 100644
--- a/apps/client/src/widgets/view_widgets/table_view/index.ts
+++ b/apps/client/src/widgets/view_widgets/table_view/index.ts
@@ -217,7 +217,7 @@ export default class TableView extends ViewMode<StateInfo> {
// Refresh if promoted attributes get changed.
if (loadResults.getAttributeRows().find(attr =>
attr.type === "label" &&
- attr.name?.startsWith("label:") &&
+ (attr.name?.startsWith("label:") || attr.name?.startsWith("relation:")) &&
attributes.isAffecting(attr, this.parentNote))) {
this.#manageColumnUpdate();
}