Make standard components table custom column non-sortable

This commit is contained in:
Andrew Kingston 2021-04-13 14:45:24 +01:00
parent 9e8b6c9c41
commit 6ba2d7a0ef
1 changed files with 5 additions and 1 deletions

View File

@ -60,7 +60,11 @@
const getFilteredSchema = (schema, fields, hasChildren) => {
let newSchema = {}
if (hasChildren) {
newSchema[customColumnKey] = { displayName: null, order: 0 }
newSchema[customColumnKey] = {
displayName: null,
order: 0,
sortable: false,
}
}
fields.forEach(field => {
newSchema[field] = schema[field]