This is an automated email from the ASF dual-hosted git repository.

vavila pushed a commit to branch fix/metric-d3format
in repository https://gitbox.apache.org/repos/asf/superset.git

commit f7a6add17ebdb93284c3f0ccd3b87b9f0ad63e12
Author: Vitor Avila <vitor.av...@preset.io>
AuthorDate: Tue Jul 8 01:44:07 2025 -0300

    fix: Apply metric d3format from dataset when currency config is {}
---
 .../packages/superset-ui-core/src/currency-format/utils.ts              | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/superset-frontend/packages/superset-ui-core/src/currency-format/utils.ts 
b/superset-frontend/packages/superset-ui-core/src/currency-format/utils.ts
index 243aa92a9f..14228ea77f 100644
--- a/superset-frontend/packages/superset-ui-core/src/currency-format/utils.ts
+++ b/superset-frontend/packages/superset-ui-core/src/currency-format/utils.ts
@@ -40,7 +40,7 @@ export const buildCustomFormatters = (
       const actualCurrencyFormat = currencyFormat?.symbol
         ? currencyFormat
         : savedCurrencyFormats[metric];
-      return actualCurrencyFormat
+      return actualCurrencyFormat?.symbol
         ? {
             ...acc,
             [metric]: new CurrencyFormatter({

Reply via email to