pollination-react-io 1.57.0 → 1.57.1

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.js CHANGED
@@ -49602,20 +49602,18 @@ var RunDetails = function (_a) {
49602
49602
  var _b = React.useState([]), extraInputs = _b[0], setExtraInputs = _b[1];
49603
49603
  var _c = React.useState([]), recipeInputs = _c[0], setRecipeInputs = _c[1];
49604
49604
  var _d = React.useState([]), outputs = _d[0], setOutputs = _d[1];
49605
- var _e = React.useState(), currRun = _e[0], setCurrRun = _e[1];
49606
- React.useEffect(function () { return setCurrRun(run); }, [run]);
49607
49605
  React.useEffect(function () {
49608
- if (!currRun)
49606
+ if (!run)
49609
49607
  return;
49610
49608
  var recipeInputNames = [];
49611
- if (currRun.recipe && currRun.recipe.inputs) {
49612
- recipeInputNames = currRun.recipe.inputs.map(function (i) { return i.name; });
49609
+ if (run.recipe && run.recipe.inputs) {
49610
+ recipeInputNames = run.recipe.inputs.map(function (i) { return i.name; });
49613
49611
  }
49614
49612
  var outputs = [];
49615
49613
  var recipeInputs = [];
49616
49614
  var extraInputs = [];
49617
49615
  if (run.status) {
49618
- currRun.status.inputs.forEach(function (i) {
49616
+ run.status.inputs.forEach(function (i) {
49619
49617
  if (recipeInputNames.includes(i.name)) {
49620
49618
  recipeInputs.push(i);
49621
49619
  }
@@ -49623,12 +49621,12 @@ var RunDetails = function (_a) {
49623
49621
  extraInputs.push(i);
49624
49622
  }
49625
49623
  });
49626
- currRun.status.outputs.map(function (o) { return outputs.push(o); });
49624
+ run.status.outputs.map(function (o) { return outputs.push(o); });
49627
49625
  }
49628
49626
  setExtraInputs(extraInputs);
49629
49627
  setRecipeInputs(recipeInputs);
49630
49628
  setOutputs(outputs);
49631
- }, [currRun]);
49629
+ }, [run]);
49632
49630
  return (React__default["default"].createElement("div", null,
49633
49631
  outputs &&
49634
49632
  React__default["default"].createElement(RunContent, { title: 'Outputs', inputData: outputs, projectName: projectName, projectOwner: projectOwner, studyId: run.status.job_id, runId: run.id || runId, client: client, style: style, getFileCard: getFileCard, getFolderCard: getFolderCard }),