@datawheel/data-explorer 1.0.19 → 1.0.21

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.
Files changed (2) hide show
  1. package/dist/main.mjs +5 -8
  2. package/package.json +1 -1
package/dist/main.mjs CHANGED
@@ -2277,7 +2277,8 @@ function useDownloadQuery() {
2277
2277
  extension: format2.replace(/json\w+/, "json"),
2278
2278
  name: `${params.cube}_${(/* @__PURE__ */ new Date()).toISOString()}`
2279
2279
  };
2280
- }
2280
+ },
2281
+ throwOnError: false
2281
2282
  });
2282
2283
  }
2283
2284
  function useFetchQuery(queryParams, queryLink, options) {
@@ -2673,17 +2674,14 @@ function useDownload(props) {
2673
2674
  }
2674
2675
  }
2675
2676
  }, [file]);
2676
- useEffect(() => {
2677
- if (error) {
2678
- console.error("Download error:", error);
2679
- }
2680
- }, [error]);
2681
2677
  const onClick = useCallback(
2682
2678
  (evt, cb = () => {
2683
2679
  }) => {
2684
2680
  evt.stopPropagation();
2685
2681
  evt.preventDefault();
2686
- return run(provider()).then(cb);
2682
+ return run(provider()).then(cb).catch((err) => {
2683
+ console.error("Error creating download:", err);
2684
+ });
2687
2685
  },
2688
2686
  [run]
2689
2687
  );
@@ -3757,7 +3755,6 @@ function LevelItem({
3757
3755
  const updatecutHandler = (item, members) => {
3758
3756
  actions2.updateCut({ ...item, members });
3759
3757
  };
3760
- console.log(isOtherHierarchySelected, "isOtherHierarchySelected");
3761
3758
  const checked = activeItems.map((i) => i.level).includes(level.name);
3762
3759
  const disableUncheck = activeItems.length === 1 && checked;
3763
3760
  const isDisabled = isOtherHierarchySelected && !checked;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datawheel/data-explorer",
3
- "version": "1.0.19",
3
+ "version": "1.0.21",
4
4
  "main": "./dist/main.mjs",
5
5
  "types": "./dist/main.d.mts",
6
6
  "files": [