@datawheel/data-explorer 1.0.20 → 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.
- package/dist/main.mjs +3 -1
- package/package.json +1 -1
package/dist/main.mjs
CHANGED
|
@@ -2679,7 +2679,9 @@ function useDownload(props) {
|
|
|
2679
2679
|
}) => {
|
|
2680
2680
|
evt.stopPropagation();
|
|
2681
2681
|
evt.preventDefault();
|
|
2682
|
-
return run(provider()).then(cb)
|
|
2682
|
+
return run(provider()).then(cb).catch((err) => {
|
|
2683
|
+
console.error("Error creating download:", err);
|
|
2684
|
+
});
|
|
2683
2685
|
},
|
|
2684
2686
|
[run]
|
|
2685
2687
|
);
|