This is an automated email from the ASF dual-hosted git repository. michaelsmolina pushed a commit to branch 3.0 in repository https://gitbox.apache.org/repos/asf/superset.git
commit 2f1ce7f721f0dfc634248c7824f0d6a698ce8d60 Author: Michael S. Molina <[email protected]> AuthorDate: Mon Sep 11 08:26:43 2023 -0300 fix: Clearing the currency format has no effect on the chart (#25238) (cherry picked from commit 6f4e63162faf91f263e02f3edfedaa95a35a6a91) --- .../src/explore/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
