From 611dce32dfaae52a4674162cbd206fa0f0604b6e Mon Sep 17 00:00:00 2001 From: Jeremy Clements <79224539+jeclrsg@users.noreply.github.com> Date: Tue, 7 Jan 2025 11:49:52 -0500 Subject: [PATCH] HPCC-33169 ECL Watch v9 fix spinner on playground initial load fix an issue where the graph and results/errors components on the ECL playground page in the v9 UI would display spinners on intial load Signed-off-by: Jeremy Clements <79224539+jeclrsg@users.noreply.github.com> --- esp/src/src-react/components/ECLPlayground.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/esp/src/src-react/components/ECLPlayground.tsx b/esp/src/src-react/components/ECLPlayground.tsx index ceca0b9eed9..c6d9eca7320 100644 --- a/esp/src/src-react/components/ECLPlayground.tsx +++ b/esp/src/src-react/components/ECLPlayground.tsx @@ -471,10 +471,11 @@ export const ECLPlayground: React.FunctionComponent = (props useOnEvent(document, "eclwatch-theme-toggle", handleThemeToggle); const submissionComplete = React.useMemo(() => { + if (!workunit?.Wuid) return true; return workunit?.StateID === WUStateID.Completed || workunit?.StateID === WUStateID.Failed || (workunit?.ActionEx === "compile" && workunit?.StateID === WUStateID.Compiled); - }, [workunit?.StateID, workunit?.ActionEx]); + }, [workunit?.StateID, workunit?.ActionEx, workunit?.Wuid]); const handleEclChange = React.useMemo(() => debounce((evt) => { if (editor.hasFocus()) {