1
0
Fork 0
mirror of synced 2024-07-14 18:55:45 +12:00

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

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])
}