pollination-react-io 1.73.3 → 1.73.5

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
@@ -48842,7 +48842,7 @@ var StudyCard = function (_a) {
48842
48842
  * From job to run
48843
48843
  */
48844
48844
  var _12 = useSWR(authUser && _study ? [projectOwner, projectName, _study.id] : undefined, fetchJob, {
48845
- revalidateOnFocus: false,
48845
+ revalidateOnFocus: true,
48846
48846
  refreshInterval: stopRefresh ? undefined : interval,
48847
48847
  fallbackData: _study,
48848
48848
  errorRetryCount: 3,
@@ -49152,7 +49152,7 @@ var RunCard = function (_a) {
49152
49152
  * From run and stop when it is done
49153
49153
  */
49154
49154
  var _9 = useSWR(authUser && _run ? (!localRun ? [projectOwner, projectName, _run.id] : [_run.id, _run['subfolder']]) : undefined, localRun ? fetchLocalRun : fetchRun, {
49155
- revalidateOnFocus: false,
49155
+ revalidateOnFocus: true,
49156
49156
  refreshInterval: stopRefresh ? undefined : interval,
49157
49157
  fallbackData: localRun ? undefined : _run,
49158
49158
  errorRetryCount: 3,
@@ -49844,18 +49844,20 @@ var FileCard = function (_a) {
49844
49844
  setIsInactive(true);
49845
49845
  setCurrFile(undefined);
49846
49846
  setCADintegration(undefined);
49847
+ setIsLoading(false);
49847
49848
  return;
49848
49849
  }
49849
49850
  res.blob()
49850
49851
  .then(function (blob) {
49851
49852
  setCurrFile(blob);
49852
49853
  setCADintegration(blob);
49854
+ setIsLoading(false);
49853
49855
  });
49854
49856
  })
49855
49857
  .catch(function (err) {
49856
49858
  console.error(err);
49857
- })
49858
- .finally(function () { return setIsLoading(false); });
49859
+ setIsLoading(false);
49860
+ });
49859
49861
  };
49860
49862
  var extension = React.useMemo(function () {
49861
49863
  if (!path)