@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 +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
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
|
|
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,
|
|
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(
|