Skip to content

Commit

Permalink
fix(pubsub): prevent NPE when retrying a pipeline execution with (#8172
Browse files Browse the repository at this point in the history
…) (#8174)

a pubsub trigger

(cherry picked from commit 5d95271)

Co-authored-by: Daniel Peach <[email protected]>
  • Loading branch information
mergify[bot] and danielpeach authored Apr 15, 2020
1 parent 78d34f3 commit d7fae58
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export class Triggers extends React.Component<ITriggersProps> {
};

private updateTriggerDescription = (trigger: ITrigger) => {
if (trigger && !trigger.description) {
if (trigger && !trigger.description && Registry.pipeline.hasManualExecutionComponentForTriggerType(trigger.type)) {
Observable.fromPromise(
(Registry.pipeline.getManualExecutionComponentForTriggerType(trigger.type) as any).formatLabel(trigger),
)
Expand Down

0 comments on commit d7fae58

Please sign in to comment.