feat(views/table): force a refresh if #sorted is changed

This commit is contained in:
Elian Doran 2025-07-14 17:02:07 +03:00
parent ded5b1f5d2
commit 504a842d37
No known key found for this signature in database

View File

@ -248,6 +248,11 @@ export default class TableView extends ViewMode<StateInfo> {
return;
}
// Force a refresh if sorted is changed since we need to disable reordering.
if (loadResults.getAttributeRows().find(a => attributes.isAffecting(a, this.parentNote))) {
return true;
}
// Refresh if promoted attributes get changed.
if (loadResults.getAttributeRows().find(attr =>
attr.type === "label" &&