From 3e294c3cb93cb8106520dd1ca5305fdf82ee6689 Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Thu, 26 Sep 2024 21:15:14 +0200 Subject: [PATCH] Don't allow related fields in sort button --- .../frontend-core/src/components/grid/controls/SortButton.svelte | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/frontend-core/src/components/grid/controls/SortButton.svelte b/packages/frontend-core/src/components/grid/controls/SortButton.svelte index eb67c34651..5a1f6b221a 100644 --- a/packages/frontend-core/src/components/grid/controls/SortButton.svelte +++ b/packages/frontend-core/src/components/grid/controls/SortButton.svelte @@ -13,6 +13,7 @@ label: col.label || col.name, value: col.name, type: col.schema?.type, + related: col.related, })) .filter(col => canBeSortColumn(col)) $: orderOptions = getOrderOptions($sort.column, columnOptions)