Skip to content

Commit

Permalink
Fix bug for add Trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
sudhirverma committed May 25, 2021
1 parent be20ec7 commit 2890255
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 2890255

Please sign in to comment.