@carto/meridian-ds 2.3.0 → 2.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/widgets/index.cjs +1 -1
- package/dist/widgets/index.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,8 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
## Unreleased
|
|
4
4
|
|
|
5
|
+
- fix(widgets): FormulaWidgets doesn't display if when loading [#240](https://github.com/CartoDB/meridian-ds/pull/240)
|
|
6
|
+
|
|
5
7
|
## 2.0
|
|
6
8
|
|
|
9
|
+
### 2.3.1
|
|
10
|
+
|
|
11
|
+
- fix(widgets): FormulaWidgets doesn't display if when loading [#240](https://github.com/CartoDB/meridian-ds/pull/240)
|
|
12
|
+
|
|
7
13
|
### 2.3.0
|
|
8
14
|
|
|
9
15
|
- New FilterDropdown component [#235](https://github.com/CartoDB/meridian-ds/pull/235)
|
package/dist/widgets/index.cjs
CHANGED
|
@@ -1333,7 +1333,7 @@ function FormulaWidgetUI({
|
|
|
1333
1333
|
}
|
|
1334
1334
|
};
|
|
1335
1335
|
}, [animation, data, setValue]);
|
|
1336
|
-
const formattedValue = formatter(value);
|
|
1336
|
+
const formattedValue = value === NO_DATA ? NO_DATA : formatter(value);
|
|
1337
1337
|
const isComplexFormat = typeof formattedValue === "object" && formattedValue !== null;
|
|
1338
1338
|
const isDisabled = formattedValue === NO_DATA;
|
|
1339
1339
|
if (showSkeleton) {
|
package/dist/widgets/index.js
CHANGED
|
@@ -1331,7 +1331,7 @@ function FormulaWidgetUI({
|
|
|
1331
1331
|
}
|
|
1332
1332
|
};
|
|
1333
1333
|
}, [animation, data, setValue]);
|
|
1334
|
-
const formattedValue = formatter(value);
|
|
1334
|
+
const formattedValue = value === NO_DATA ? NO_DATA : formatter(value);
|
|
1335
1335
|
const isComplexFormat = typeof formattedValue === "object" && formattedValue !== null;
|
|
1336
1336
|
const isDisabled = formattedValue === NO_DATA;
|
|
1337
1337
|
if (showSkeleton) {
|