Skip to content

Commit

Permalink
HPCC-33169 ECL Watch v9 fix spinner on playground initial load
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
jeclrsg committed Jan 7, 2025
1 parent c6b7163 commit 611dce3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion esp/src/src-react/components/ECLPlayground.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -471,10 +471,11 @@ export const ECLPlayground: React.FunctionComponent<ECLPlaygroundProps> = (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()) {
Expand Down

0 comments on commit 611dce3

Please sign in to comment.