fix(views/table): refresh when relation changes

This commit is contained in:
Elian Doran 2025-07-04 21:43:56 +03:00
parent 3de7b81be8
commit 1ebb70c4d2
No known key found for this signature in database

View File

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