Skip to content

Commit

Permalink
Fix bug for add Trigger (#587)
Browse files Browse the repository at this point in the history
  • Loading branch information
sudhirverma authored May 25, 2021
1 parent 5c0fa0a commit b69b59a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pipeline/wizard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ export class PipelineWizard extends Disposable {
// eslint-disable-next-line no-case-declarations
const inputAddTrigger = e.body;
this.dispose();
if (inputStartPipeline.newPvc.length !== 0) await createNewResource(inputStartPipeline.newPvc);
if (inputStartPipeline.newPipelineResource.length !== 0) await createNewResource(inputStartPipeline.newPipelineResource);
if (inputAddTrigger?.newPvc.length !== 0) await createNewResource(inputAddTrigger.newPvc);
if (inputAddTrigger?.newPipelineResource.length !== 0) await createNewResource(inputAddTrigger.newPipelineResource);
return await addTriggerToPipeline(inputAddTrigger);
}
}));
Expand Down

0 comments on commit b69b59a

Please sign in to comment.