From 504a842d371673597e1db551df2850136fde71d1 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Mon, 14 Jul 2025 17:02:07 +0300 Subject: [PATCH] feat(views/table): force a refresh if #sorted is changed --- apps/client/src/widgets/view_widgets/table_view/index.ts | 5 +++++ 1 file changed, 5 insertions(+) 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 e03c7628b..031c7dcc5 100644 --- a/apps/client/src/widgets/view_widgets/table_view/index.ts +++ b/apps/client/src/widgets/view_widgets/table_view/index.ts @@ -248,6 +248,11 @@ export default class TableView extends ViewMode { 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" &&