Make standard components table custom column non-sortable
This commit is contained in:
parent
5448cf02b8
commit
c2b41ac55a
|
@ -60,7 +60,11 @@
|
||||||
const getFilteredSchema = (schema, fields, hasChildren) => {
|
const getFilteredSchema = (schema, fields, hasChildren) => {
|
||||||
let newSchema = {}
|
let newSchema = {}
|
||||||
if (hasChildren) {
|
if (hasChildren) {
|
||||||
newSchema[customColumnKey] = { displayName: null, order: 0 }
|
newSchema[customColumnKey] = {
|
||||||
|
displayName: null,
|
||||||
|
order: 0,
|
||||||
|
sortable: false,
|
||||||
|
}
|
||||||
}
|
}
|
||||||
fields.forEach(field => {
|
fields.forEach(field => {
|
||||||
newSchema[field] = schema[field]
|
newSchema[field] = schema[field]
|
||||||
|
|
Loading…
Reference in New Issue