Fix bug in SortableFieldSelect which results in options being available for sort fields

This commit is contained in:
Andrew Kingston 2023-10-13 17:03:19 +01:00
parent 804aab3e43
commit b337bd7435
1 changed files with 1 additions and 3 deletions

View File

@ -20,9 +20,7 @@
const getSortableFields = schema => {
return Object.entries(schema || {})
.filter(
entry => !UNSORTABLE_TYPES.includes(entry[1].type) && entry[1].sortable
)
.filter(entry => !UNSORTABLE_TYPES.includes(entry[1].type))
.map(entry => entry[0])
}