Skip to content

Commit

Permalink
fix(core): fix manual execution (#7408)
Browse files Browse the repository at this point in the history
  • Loading branch information
maggieneterval authored Sep 16, 2019
1 parent 476ad62 commit b396658
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,6 @@ export class ManualExecutionModal extends React.Component<IManualExecutionModalP
triggerComponent,
triggers,
} = this.state;
const { manualStartAlert } = pipeline;
const notifications = applicationNotifications.concat(pipelineNotifications);
const pipelineCommand = this.generateInitialValues(pipeline);
return (
Expand Down Expand Up @@ -366,12 +365,14 @@ export class ManualExecutionModal extends React.Component<IManualExecutionModalP
{currentPipelineExecutions.length > 0 && (
<CurrentlyRunningExecutions currentlyRunningExecutions={currentPipelineExecutions} />
)}
{manualStartAlert && (
{pipeline && pipeline.manualStartAlert && (
<Markdown
className={`alert alert-${
['danger', 'warning', 'info'].includes(manualStartAlert.type) ? manualStartAlert.type : 'warning'
['danger', 'warning', 'info'].includes(pipeline.manualStartAlert.type)
? pipeline.manualStartAlert.type
: 'warning'
}`}
message={manualStartAlert.message}
message={pipeline.manualStartAlert.message}
/>
)}
{triggers && triggers.length > 0 && (
Expand Down

0 comments on commit b396658

Please sign in to comment.