Skip to content

Commit

Permalink
Clear pipeline before checking
Browse files Browse the repository at this point in the history
Clicking 'Check' should reset all the state, including any error
messages, so we need to clear any fetched pipeline.
  • Loading branch information
jbeisen committed Nov 9, 2023
1 parent 6f9bf30 commit 3ad1a9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arroyo-console/src/routes/pipelines/CreatePipeline.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,7 @@ export function CreatePipeline() {

const pipelineIsValid = async (successTab?: number) => {
// Setting this state triggers the uswSWR calls
setPipelineId(undefined);
setQueryInputToCheck(queryInput);
setLocalUdfsToCheck(localUdfs);
setOutputs([]);
Expand All @@ -270,7 +271,6 @@ export function CreatePipeline() {
const preview = async () => {
setTourStep(undefined);
setQueryInputToCheck('');
setPipelineId(undefined);

if (!(await pipelineIsValid(1))) {
return;
Expand Down

0 comments on commit 3ad1a9c

Please sign in to comment.