From 42c3b2b0ad3f0f07f3feb9fb7dc34aa2e67be280 Mon Sep 17 00:00:00 2001 From: Bartosz Prusinowski Date: Wed, 6 Dec 2023 11:36:02 +0100 Subject: [PATCH] fix: Disable tab actions when layouting --- app/components/chart-selection-tabs.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/components/chart-selection-tabs.tsx b/app/components/chart-selection-tabs.tsx index a0a2088c5c..1b2b5b512b 100644 --- a/app/components/chart-selection-tabs.tsx +++ b/app/components/chart-selection-tabs.tsx @@ -110,6 +110,7 @@ type TabsEditableProps = { const TabsEditable = (props: TabsEditableProps) => { const { state, chartConfig, data } = props; const [, dispatch] = useConfiguratorState(); + const isConfiguringChart = isConfiguring(state); const locale = useLocale(); const [tabsState, setTabsState] = useTabsState(); const [popoverAnchorEl, setPopoverAnchorEl] = @@ -133,8 +134,8 @@ const TabsEditable = (props: TabsEditableProps) => { <> 1} onChartAdd={(e) => { setPopoverAnchorEl(e.currentTarget);