pollination-react-io 1.62.5 → 1.62.6
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/build/index.esm.js +8 -2
- package/build/index.esm.js.map +1 -1
- package/build/index.js +8 -2
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.js
CHANGED
@@ -49548,15 +49548,21 @@ var FileCard = function (_a) {
|
|
49548
49548
|
return path.split('/').reverse()[0];
|
49549
49549
|
}, [path]);
|
49550
49550
|
/**
|
49551
|
-
* Read local file as
|
49551
|
+
* Read local file as base64 - Panel only
|
49552
49552
|
*/
|
49553
49553
|
var base64AndFetch = function (path) {
|
49554
49554
|
if (!path)
|
49555
49555
|
return;
|
49556
49556
|
var data = fromFileToBase64(path);
|
49557
49557
|
var base64Data = data === null || data === void 0 ? void 0 : data.data;
|
49558
|
-
if (!base64Data)
|
49558
|
+
if (!base64Data) {
|
49559
|
+
// Not found...
|
49560
|
+
setIsInactive(true);
|
49561
|
+
setCurrFile(undefined);
|
49562
|
+
setCADintegration(undefined);
|
49563
|
+
setIsLoading(false);
|
49559
49564
|
return;
|
49565
|
+
}
|
49560
49566
|
// bas64 mapping
|
49561
49567
|
var t;
|
49562
49568
|
switch (extension) {
|