From c2b41ac55a324477ffc690c67da23768ab450557 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Tue, 13 Apr 2021 14:45:24 +0100 Subject: [PATCH] Make standard components table custom column non-sortable --- packages/standard-components/src/table/Table.svelte | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/standard-components/src/table/Table.svelte b/packages/standard-components/src/table/Table.svelte index 8da9eef82d..e7b6ba078e 100644 --- a/packages/standard-components/src/table/Table.svelte +++ b/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]