1
0
Fork 0
mirror of synced 2024-08-15 01:51:33 +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 => { const getSortableFields = schema => {
return Object.entries(schema || {}) return Object.entries(schema || {})
.filter( .filter(entry => !UNSORTABLE_TYPES.includes(entry[1].type))
entry => !UNSORTABLE_TYPES.includes(entry[1].type) && entry[1].sortable
)
.map(entry => entry[0]) .map(entry => entry[0])
} }