Fix issue with sort setting
This commit is contained in:
parent
91af9a63a2
commit
73ca87dfb6
|
@ -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])
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue