From 6f4e63162faf91f263e02f3edfedaa95a35a6a91 Mon Sep 17 00:00:00 2001 From: "Michael S. Molina" <70410625+michael-s-molina@users.noreply.github.com> Date: Mon, 11 Sep 2023 08:26:43 -0300 Subject: [PATCH] fix: Clearing the currency format has no effect on the chart (#25238) --- .../components/controls/CurrencyControl/CurrencyControl.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/superset-frontend/src/explore/components/controls/CurrencyControl/CurrencyControl.tsx b/superset-frontend/src/explore/components/controls/CurrencyControl/CurrencyControl.tsx index 5bbe271150..9c71e6edb5 100644 --- a/superset-frontend/src/explore/components/controls/CurrencyControl/CurrencyControl.tsx +++ b/superset-frontend/src/explore/components/controls/CurrencyControl/CurrencyControl.tsx @@ -107,6 +107,7 @@ export const CurrencyControl = ({ onChange={(symbolPosition: string) => { onChange({ ...currency, symbolPosition }); }} + onClear={() => onChange({ ...currency, symbolPosition: undefined })} value={currency?.symbolPosition} allowClear {...symbolSelectOverrideProps} @@ -118,6 +119,7 @@ export const CurrencyControl = ({ onChange={(symbol: string) => { onChange({ ...currency, symbol }); }} + onClear={() => onChange({ ...currency, symbol: undefined })} value={currency?.symbol} allowClear allowNewOptions