Merge pull request #12058 from Budibase/fix-sort-setting

Fix sort column settings
This commit is contained in:
Andrew Kingston 2023-10-13 19:06:58 +01:00 committed by GitHub
commit 01df17e58a
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])
} }