Merge pull request #12058 from Budibase/fix-sort-setting
Fix sort column settings
This commit is contained in:
commit
01df17e58a
|
@ -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