pollination-react-io 1.62.1 → 1.62.3

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.
@@ -49555,7 +49555,8 @@ var FileCard = function (_a) {
49555
49555
  .catch(function () { return onClicked({ label: label, path: path, file: undefined, description: description, runId: runId }); });
49556
49556
  }
49557
49557
  else {
49558
- if (!isPanel) {
49558
+ // Some inputs has path == null
49559
+ if (!isPanel || !path) {
49559
49560
  setIsInactive(true);
49560
49561
  setCurrFile(undefined);
49561
49562
  setCADintegration(undefined);
@@ -49651,7 +49652,11 @@ var RunContent = function (_a) {
49651
49652
  var _d = useState([]), currParams = _d[0], setCurrParams = _d[1];
49652
49653
  var _e = useState([]), currFiles = _e[0], setCurrFiles = _e[1];
49653
49654
  var _f = useState([]), currFolders = _f[0], setCurrFolders = _f[1];
49654
- useEffect(function () { return setCurrData(inputData); }, [inputData]);
49655
+ var _g = useState(false), reloader = _g[0], setReloader = _g[1];
49656
+ useEffect(function () {
49657
+ setCurrData(inputData);
49658
+ isCloud && setReloader(function (prev) { return !prev; });
49659
+ }, [inputData]);
49655
49660
  useEffect(function () {
49656
49661
  if (!currData || currData.length == 0)
49657
49662
  return;
@@ -49679,7 +49684,7 @@ var RunContent = function (_a) {
49679
49684
  setCurrParams(params);
49680
49685
  setCurrFiles(files);
49681
49686
  setCurrFolders(folders);
49682
- }, [currData]);
49687
+ }, [currData, reloader]);
49683
49688
  // const checkIfValidUUID = (str: string): boolean => {
49684
49689
  // const regexExp = /^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/gi
49685
49690
  // return regexExp.test(str)
@@ -49737,7 +49742,6 @@ var RunDetails = function (_a) {
49737
49742
  var outputs = [];
49738
49743
  var recipeInputs = [];
49739
49744
  var extraInputs = [];
49740
- // If cloud
49741
49745
  if (run.status) {
49742
49746
  run.status.inputs.forEach(function (i) {
49743
49747
  if (recipeInputNames.includes(i.name)) {