Fix issue with sort setting

This commit is contained in:
Andrew Kingston 2023-10-13 17:04:45 +01:00
parent 91af9a63a2
commit 73ca87dfb6
1 changed files with 1 additions and 3 deletions

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