pollination-react-io 1.23.1 → 1.24.0
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/hooks/useCreateStudy.d.ts +1 -1
- package/build/index.esm.js +10 -8
- package/build/index.esm.js.map +1 -1
- package/build/index.js +10 -8
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -38122,7 +38122,10 @@ var useCreateStudy = function (accountName, projectName, client) {
|
|
|
38122
38122
|
description: description,
|
|
38123
38123
|
source: recipe.source,
|
|
38124
38124
|
arguments: [jobArguments]
|
|
38125
|
-
}); })
|
|
38125
|
+
}); }).catch(function (err) {
|
|
38126
|
+
var data = err.response.data;
|
|
38127
|
+
console.error(data.detail);
|
|
38128
|
+
})];
|
|
38126
38129
|
case 1:
|
|
38127
38130
|
job = _c.sent();
|
|
38128
38131
|
jobInfo = {
|
|
@@ -38135,14 +38138,13 @@ var useCreateStudy = function (accountName, projectName, client) {
|
|
|
38135
38138
|
SubFolderPath: ''
|
|
38136
38139
|
};
|
|
38137
38140
|
console.log(jobInfo);
|
|
38138
|
-
response =
|
|
38139
|
-
|
|
38140
|
-
|
|
38141
|
-
|
|
38141
|
+
response = window.parent.chrome.webview.hostObjects.study.RunSimulation(JSON.stringify(jobInfo))
|
|
38142
|
+
.then(function (value) {
|
|
38143
|
+
console.log(value);
|
|
38144
|
+
onSuccess && onSuccess(cloudProjectOwner, cloudProjectName, value);
|
|
38145
|
+
}, function (reason) {
|
|
38146
|
+
console.error(reason);
|
|
38142
38147
|
});
|
|
38143
|
-
if (response) {
|
|
38144
|
-
onSuccess && onSuccess(cloudProjectOwner, cloudProjectName, localRunFolder);
|
|
38145
|
-
}
|
|
38146
38148
|
return [2 /*return*/, response];
|
|
38147
38149
|
}
|
|
38148
38150
|
});
|