@elaraai/e3-ui-components 0.0.1-beta.12 → 0.0.1-beta.14

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/dist/index.cjs CHANGED
@@ -5491,12 +5491,12 @@ const TaskPreview = React.memo(function TaskPreview2({
5491
5491
  });
5492
5492
  const [viewMode, setViewMode] = React.useState(null);
5493
5493
  React.useEffect(() => {
5494
- if (isLoading && (stdout == null ? void 0 : stdout.data) === void 0 && (stderr == null ? void 0 : stderr.data) === void 0) return;
5494
+ if (isLoading) return;
5495
5495
  setViewMode((prev) => {
5496
5496
  if (prev !== null) return prev;
5497
5497
  return ir === null ? "logs" : "output";
5498
5498
  });
5499
- }, [isLoading, stdout == null ? void 0 : stdout.data, stderr == null ? void 0 : stderr.data, ir, taskInfo == null ? void 0 : taskInfo.status.type]);
5499
+ }, [isLoading, ir]);
5500
5500
  const outputPanel = React.useMemo(() => {
5501
5501
  if ((taskInfo == null ? void 0 : taskInfo.status.type) !== "up-to-date") {
5502
5502
  return /* @__PURE__ */ jsxRuntime.jsx(