Skip to content

Commit

Permalink
ADM-902: [frontend] fix: fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
neomgb committed Apr 16, 2024
1 parent deccf87 commit 8f4e8ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/context/Metrics/metricsSlice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,7 @@ export const metricsSlice = createSlice({
const selectedPipelineStep = state.deploymentFrequencySettings.find((pipeline) => pipeline.id === id)?.step ?? '';

state.pipelineCrews = intersection(pipelineCrews, state.pipelineCrews);
const stepWarningMessage = (selectedStep: string, isStepSelected = false) =>
const stepWarningMessage = (selectedStep: string, isStepSelected: boolean) =>
steps.includes(selectedStep) || isStepSelected ? null : MESSAGE.STEP_WARNING;

const validStep = (pipeline: IPipelineConfig): string => {
Expand Down

0 comments on commit 8f4e8ed

Please sign in to comment.