pollination-react-io 1.73.6 → 1.74.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.
@@ -45123,7 +45123,7 @@ var CreateStudy = function (_a) {
45123
45123
  var jobName_1 = toUnixPath(projectJobInfo.studyId).split('/').reverse()[0];
45124
45124
  // Path is the full path of the local machine where the run input/output are
45125
45125
  setTimeout(function () {
45126
- window.location.href = "".concat(basePath, "/").concat(projectJobInfo.accountName, "/projects/").concat(projectJobInfo.projectName, "/localStudies/").concat(jobName_1, "/?path=").concat(projectJobInfo.studyId);
45126
+ window.location.href = "".concat(basePath, "/").concat(projectJobInfo.accountName, "/projects/").concat(projectJobInfo.projectName, "/localStudies/").concat(jobName_1, "/?path=").concat(projectJobInfo.studyId, "&studyName=").concat(projectJobInfo.jobName);
45127
45127
  }, 3000);
45128
45128
  }
45129
45129
  };
@@ -49249,6 +49249,7 @@ var RunCard = function (_a) {
49249
49249
  window.location.href = "/".concat(projectOwner, "/projects/").concat(projectName, "/studies/").concat(study.id, "/runs/").concat(run.id);
49250
49250
  }
49251
49251
  else {
49252
+ // No studyName. Only completed run are visible in the list
49252
49253
  window.location.href = "/".concat(projectOwner, "/projects/").concat(projectName, "/localStudies/").concat(localStudyURLname, "/?path=").concat(_run.id, "&subfolder=").concat(_run['subfolder']);
49253
49254
  }
49254
49255
  } },
@@ -49782,9 +49783,10 @@ var FileCard = function (_a) {
49782
49783
  var setCADintegration = useCallback(function (file) {
49783
49784
  if (!file)
49784
49785
  return;
49785
- if (host !== 'rhino')
49786
+ if (host === 'web')
49786
49787
  return;
49787
- if (path.endsWith('hbjson')) {
49788
+ if (path.endsWith('hbjson')
49789
+ && host === 'rhino') {
49788
49790
  var reader_1 = new FileReader();
49789
49791
  reader_1.readAsText(file);
49790
49792
  reader_1.onload = function () {
@@ -49796,7 +49798,8 @@ var FileCard = function (_a) {
49796
49798
  });
49797
49799
  };
49798
49800
  }
49799
- else if (path.endsWith('vsf')) {
49801
+ else if (path.endsWith('vsf')
49802
+ && (host === 'rhino' || host === 'revit')) {
49800
49803
  var reader_2 = new FileReader();
49801
49804
  reader_2.readAsText(file);
49802
49805
  reader_2.onload = function () {