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.js
CHANGED
@@ -38622,6 +38622,9 @@ var usePollinationPanel = function () {
|
|
38622
38622
|
return;
|
38623
38623
|
try {
|
38624
38624
|
var message = panel.FetchSimulationFile(path, subfolder, SimulationFileType[SimulationFileType.status]);
|
38625
|
+
if (message.data === '') {
|
38626
|
+
console.log('[LOCAL RUN]: Status file not found');
|
38627
|
+
}
|
38625
38628
|
var run = JSON.parse(message.data);
|
38626
38629
|
return run;
|
38627
38630
|
}
|
@@ -38640,6 +38643,9 @@ var usePollinationPanel = function () {
|
|
38640
38643
|
return;
|
38641
38644
|
try {
|
38642
38645
|
var message = panel.FetchSimulationFile(path, subfolder, SimulationFileType[SimulationFileType.job]);
|
38646
|
+
if (message.data === '') {
|
38647
|
+
console.log('[LOCAL RUN]: Job file not found');
|
38648
|
+
}
|
38643
38649
|
var localJob = JSON.parse(message.data);
|
38644
38650
|
var job = (_a = localJob === null || localJob === void 0 ? void 0 : localJob.LocalJob) === null || _a === void 0 ? void 0 : _a.Job;
|
38645
38651
|
job['author'] = (_b = localJob === null || localJob === void 0 ? void 0 : localJob.LocalJob) === null || _b === void 0 ? void 0 : _b.JobAuthor;
|
@@ -38660,6 +38666,9 @@ var usePollinationPanel = function () {
|
|
38660
38666
|
return;
|
38661
38667
|
try {
|
38662
38668
|
var message = panel.FetchSimulationFile(path, subfolder, SimulationFileType[SimulationFileType.logs]);
|
38669
|
+
if (message.data === '') {
|
38670
|
+
console.log('[LOCAL RUN]: Log file not found');
|
38671
|
+
}
|
38663
38672
|
return message.data;
|
38664
38673
|
}
|
38665
38674
|
catch (error) {
|
@@ -56420,7 +56429,7 @@ var RunCard = function (_a) {
|
|
56420
56429
|
if (run.status.finished_at)
|
56421
56430
|
setStopRefresh(true);
|
56422
56431
|
setIsReady(true);
|
56423
|
-
}
|
56432
|
+
}
|
56424
56433
|
}), run = _11.data, error = _11.error;
|
56425
56434
|
var sendRun = React.useCallback(function (run) { return getValue(run); }, [getValue]);
|
56426
56435
|
/**
|
@@ -56495,11 +56504,12 @@ var RunCard = function (_a) {
|
|
56495
56504
|
setHover(__assign(__assign({}, emptyHover), (_a = {}, _a[defaultTab] = true, _a)));
|
56496
56505
|
}, [defaultTab, emptyHover]);
|
56497
56506
|
var localStudyURLname = React.useMemo(function () {
|
56507
|
+
var _a, _b;
|
56498
56508
|
if (!localStudy)
|
56499
56509
|
return;
|
56500
|
-
|
56501
|
-
|
56502
|
-
|
56510
|
+
if (localStudy === null || localStudy === void 0 ? void 0 : localStudy.name)
|
56511
|
+
return 'hello';
|
56512
|
+
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, '');
|
56503
56513
|
}, [localStudy]);
|
56504
56514
|
/**
|
56505
56515
|
* Rendering - if error
|