pollination-react-io 1.92.1 → 1.92.2
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 +14 -4
- package/build/index.esm.js.map +1 -1
- package/build/index.js +14 -4
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.esm.js
CHANGED
@@ -38595,6 +38595,9 @@ var usePollinationPanel = function () {
|
|
38595
38595
|
return;
|
38596
38596
|
try {
|
38597
38597
|
var message = panel.FetchSimulationFile(path, subfolder, SimulationFileType[SimulationFileType.status]);
|
38598
|
+
if (message.data === '') {
|
38599
|
+
console.log('[LOCAL RUN]: Status file not found');
|
38600
|
+
}
|
38598
38601
|
var run = JSON.parse(message.data);
|
38599
38602
|
return run;
|
38600
38603
|
}
|
@@ -38613,6 +38616,9 @@ var usePollinationPanel = function () {
|
|
38613
38616
|
return;
|
38614
38617
|
try {
|
38615
38618
|
var message = panel.FetchSimulationFile(path, subfolder, SimulationFileType[SimulationFileType.job]);
|
38619
|
+
if (message.data === '') {
|
38620
|
+
console.log('[LOCAL RUN]: Job file not found');
|
38621
|
+
}
|
38616
38622
|
var localJob = JSON.parse(message.data);
|
38617
38623
|
var job = (_a = localJob === null || localJob === void 0 ? void 0 : localJob.LocalJob) === null || _a === void 0 ? void 0 : _a.Job;
|
38618
38624
|
job['author'] = (_b = localJob === null || localJob === void 0 ? void 0 : localJob.LocalJob) === null || _b === void 0 ? void 0 : _b.JobAuthor;
|
@@ -38633,6 +38639,9 @@ var usePollinationPanel = function () {
|
|
38633
38639
|
return;
|
38634
38640
|
try {
|
38635
38641
|
var message = panel.FetchSimulationFile(path, subfolder, SimulationFileType[SimulationFileType.logs]);
|
38642
|
+
if (message.data === '') {
|
38643
|
+
console.log('[LOCAL RUN]: Log file not found');
|
38644
|
+
}
|
38636
38645
|
return message.data;
|
38637
38646
|
}
|
38638
38647
|
catch (error) {
|
@@ -56393,7 +56402,7 @@ var RunCard = function (_a) {
|
|
56393
56402
|
if (run.status.finished_at)
|
56394
56403
|
setStopRefresh(true);
|
56395
56404
|
setIsReady(true);
|
56396
|
-
}
|
56405
|
+
}
|
56397
56406
|
}), run = _11.data, error = _11.error;
|
56398
56407
|
var sendRun = useCallback(function (run) { return getValue(run); }, [getValue]);
|
56399
56408
|
/**
|
@@ -56468,11 +56477,12 @@ var RunCard = function (_a) {
|
|
56468
56477
|
setHover(__assign(__assign({}, emptyHover), (_a = {}, _a[defaultTab] = true, _a)));
|
56469
56478
|
}, [defaultTab, emptyHover]);
|
56470
56479
|
var localStudyURLname = useMemo(function () {
|
56480
|
+
var _a, _b;
|
56471
56481
|
if (!localStudy)
|
56472
56482
|
return;
|
56473
|
-
|
56474
|
-
|
56475
|
-
|
56483
|
+
if (localStudy === null || localStudy === void 0 ? void 0 : localStudy.name)
|
56484
|
+
return 'hello';
|
56485
|
+
return (_b = (_a = localStudy === null || localStudy === void 0 ? void 0 : localStudy.name) === null || _a === void 0 ? void 0 : _a.replace(/[^a-zA-Z0-9]/g, '')) === null || _b === void 0 ? void 0 : _b.replace(/[ ()]/g, '');
|
56476
56486
|
}, [localStudy]);
|
56477
56487
|
/**
|
56478
56488
|
* Rendering - if error
|