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
a pubsub trigger
  • Loading branch information
danielpeach committed Apr 15, 2020
1 parent 68dad3a commit 5d95271
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 5d95271

Please sign in to comment.