Skip to content

Commit

Permalink
fix(core/executions): Update migrated status to match API (spinnaker#…
Browse files Browse the repository at this point in the history
  • Loading branch information
caseyhebebrand committed Jan 7, 2021
1 parent 169c601 commit ef87a9e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ export class ExecutionGroup extends React.PureComponent<IExecutionGroupProps, IE
const { group } = this.props;
const { displayExecutionActions, pipelineConfig, triggeringExecution, showingDetails } = this.state;
const pipelineDisabled = pipelineConfig && pipelineConfig.disabled;
const pipelineJustMigrated = pipelineConfig?.migrationStatus === 'STARTED';
const pipelineJustMigrated = pipelineConfig?.migrationStatus === 'Started';
const pipelineDescription = pipelineConfig && pipelineConfig.description;
const hasRunningExecutions = group.runningExecutions && group.runningExecutions.length > 0;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ export class ExecutionGroups extends React.Component<IExecutionGroupsProps, IExe
const className = `row pipelines executions ${showingDetails ? 'showing-details' : ''}`;

const allGroups = groups
.filter((g: IExecutionGroup) => g.config.migrationStatus === 'STARTED')
.concat(groups.filter((g) => g.config.migrationStatus !== 'STARTED'));
.filter((g: IExecutionGroup) => g.config.migrationStatus === 'Started')
.concat(groups.filter((g) => g.config.migrationStatus !== 'Started'));

const executionGroups = allGroups.map((group: IExecutionGroup) => (
<ExecutionGroup parent={container} key={group.heading} group={group} application={this.props.application} />
Expand Down

0 comments on commit ef87a9e

Please sign in to comment.