@datawheel/data-explorer 1.4.2 → 1.4.3
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/dist/main.mjs +2 -2
- package/package.json +1 -1
package/dist/main.mjs
CHANGED
|
@@ -2193,7 +2193,7 @@ function QueryProvider({ children, defaultCube }) {
|
|
|
2193
2193
|
const cubeMap = (schema == null ? void 0 : schema.cubeMap) || {};
|
|
2194
2194
|
const cubeArray = getValues(cubeMap);
|
|
2195
2195
|
const cube = cubeArray.find(
|
|
2196
|
-
(cube2) => cube2.name === table && getAnnotation(cube2, "subtopic", locale) === subtopic
|
|
2196
|
+
(cube2) => cube2.name === table && (getAnnotation(cube2, "subtopic", locale) || "") === subtopic
|
|
2197
2197
|
);
|
|
2198
2198
|
if (cube) {
|
|
2199
2199
|
setDefaultValues(cube);
|
|
@@ -5386,7 +5386,7 @@ function isSelected(selectedItem, currentItem) {
|
|
|
5386
5386
|
function getCube(items, name4, subtopic, locale) {
|
|
5387
5387
|
if (!Array.isArray(items)) return void 0;
|
|
5388
5388
|
const cube = items.find(
|
|
5389
|
-
(item) => item && item.name === name4 && getAnnotation(item, "subtopic", locale) === subtopic
|
|
5389
|
+
(item) => item && item.name === name4 && (getAnnotation(item, "subtopic", locale) || "") === subtopic
|
|
5390
5390
|
);
|
|
5391
5391
|
return cube;
|
|
5392
5392
|
}
|