Skip to content

Commit

Permalink
do not auto-activate step on invocation view load
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmedhamidawan committed Nov 5, 2024
1 parent ae7f869 commit 105c633
Showing 1 changed file with 0 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,22 +101,6 @@ watch(
{ immediate: true }
);
// on loading steps, toggle the first one with state === "error" or last one if none are errored
watch(
() => initialLoading.value,
(newVal) => {
if (!newVal && steps.value) {
const errorStep = Object.values(steps.value).find((step) => step.state === "error");
if (errorStep) {
activeNodeId.value = errorStep.id;
} else if (props.isTerminal) {
activeNodeId.value = Object.values(steps.value)?.slice(-1)[0]?.id || null;
}
}
},
{ immediate: true }
);
onUnmounted(() => {
clearTimeout(pollTimeout.value);
});
Expand Down

0 comments on commit 105c633

Please sign in to comment.