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.
@@ -4,10 +4,14 @@ import { APIClient } from '../hooks';
4
4
  import { FileCardProps } from './Cards/FileCard';
5
5
  import { FolderCardProps } from './Cards/FolderCard';
6
6
  export interface LocalRun {
7
- meta: any;
8
- status: any;
9
- recipe: any;
10
7
  id: string;
8
+ author: any;
9
+ owner: any;
10
+ recipe: any;
11
+ generation: any;
12
+ status: any;
13
+ meta: any;
14
+ name: string;
11
15
  }
12
16
  export interface RunDetailsProps {
13
17
  projectOwner: string;
@@ -49576,20 +49576,18 @@ var RunDetails = function (_a) {
49576
49576
  var _b = useState([]), extraInputs = _b[0], setExtraInputs = _b[1];
49577
49577
  var _c = useState([]), recipeInputs = _c[0], setRecipeInputs = _c[1];
49578
49578
  var _d = useState([]), outputs = _d[0], setOutputs = _d[1];
49579
- var _e = useState(), currRun = _e[0], setCurrRun = _e[1];
49580
- useEffect(function () { return setCurrRun(run); }, [run]);
49581
49579
  useEffect(function () {
49582
- if (!currRun)
49580
+ if (!run)
49583
49581
  return;
49584
49582
  var recipeInputNames = [];
49585
- if (currRun.recipe && currRun.recipe.inputs) {
49586
- recipeInputNames = currRun.recipe.inputs.map(function (i) { return i.name; });
49583
+ if (run.recipe && run.recipe.inputs) {
49584
+ recipeInputNames = run.recipe.inputs.map(function (i) { return i.name; });
49587
49585
  }
49588
49586
  var outputs = [];
49589
49587
  var recipeInputs = [];
49590
49588
  var extraInputs = [];
49591
49589
  if (run.status) {
49592
- currRun.status.inputs.forEach(function (i) {
49590
+ run.status.inputs.forEach(function (i) {
49593
49591
  if (recipeInputNames.includes(i.name)) {
49594
49592
  recipeInputs.push(i);
49595
49593
  }
@@ -49597,12 +49595,12 @@ var RunDetails = function (_a) {
49597
49595
  extraInputs.push(i);
49598
49596
  }
49599
49597
  });
49600
- currRun.status.outputs.map(function (o) { return outputs.push(o); });
49598
+ run.status.outputs.map(function (o) { return outputs.push(o); });
49601
49599
  }
49602
49600
  setExtraInputs(extraInputs);
49603
49601
  setRecipeInputs(recipeInputs);
49604
49602
  setOutputs(outputs);
49605
- }, [currRun]);
49603
+ }, [run]);
49606
49604
  return (React__default.createElement("div", null,
49607
49605
  outputs &&
49608
49606
  React__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 }),