From 78a9dfe23d82bec58fd6f74feb71745c9173aadb Mon Sep 17 00:00:00 2001 From: Bartosz Prusinowski Date: Wed, 5 Apr 2023 17:25:56 +0200 Subject: [PATCH] feat: Disable category column style for TemporalDimension (table) --- app/configurator/table/table-chart-options.tsx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/configurator/table/table-chart-options.tsx b/app/configurator/table/table-chart-options.tsx index c948b0032..630581087 100644 --- a/app/configurator/table/table-chart-options.tsx +++ b/app/configurator/table/table-chart-options.tsx @@ -194,6 +194,13 @@ export const TableColumnOptions = ({ label: t({ id: "columnStyle.bar", message: `Bar Chart` }), }, ] + : isTemporalDimension(component) + ? [ + { + value: "text", + label: t({ id: "columnStyle.text", message: `Text` }), + }, + ] : [ { value: "text", @@ -204,6 +211,7 @@ export const TableColumnOptions = ({ label: t({ id: "columnStyle.categories", message: `Categories` }), }, ]; + return (