Browse Source

Make standard components table custom column non-sortable

pull/4023/head
Andrew Kingston 5 years ago
parent
commit
6ba2d7a0ef
  1. 6
      packages/standard-components/src/table/Table.svelte

6
packages/standard-components/src/table/Table.svelte

@ -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]

Loading…
Cancel
Save