Skip to content

Commit

Permalink
fix: Disable tab actions when layouting
Browse files Browse the repository at this point in the history
  • Loading branch information
bprusinowski committed Dec 6, 2023
1 parent feb3e00 commit 42c3b2b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/components/chart-selection-tabs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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] =
Expand All @@ -133,8 +134,8 @@ const TabsEditable = (props: TabsEditableProps) => {
<>
<TabsInner
data={data}
addable={state.state === "CONFIGURING_CHART"}
editable
addable={isConfiguringChart}
editable={isConfiguringChart}
draggable={state.chartConfigs.length > 1}
onChartAdd={(e) => {
setPopoverAnchorEl(e.currentTarget);
Expand Down

0 comments on commit 42c3b2b

Please sign in to comment.