Don't allow related fields in sort button

This commit is contained in:
Adria Navarro 2024-09-26 21:15:14 +02:00
parent aa044b94cf
commit 3e294c3cb9
1 changed files with 1 additions and 0 deletions

View File

@ -13,6 +13,7 @@
label: col.label || col.name, label: col.label || col.name,
value: col.name, value: col.name,
type: col.schema?.type, type: col.schema?.type,
related: col.related,
})) }))
.filter(col => canBeSortColumn(col)) .filter(col => canBeSortColumn(col))
$: orderOptions = getOrderOptions($sort.column, columnOptions) $: orderOptions = getOrderOptions($sort.column, columnOptions)