From e788179da9759b5b66a05f46e86433d346332c1a Mon Sep 17 00:00:00 2001 From: zhou-yinyuan Date: Mon, 23 Sep 2024 11:09:44 +0800 Subject: [PATCH] ADM-1000 [frontend]: adjust the logic for the next button in the metrics page --- frontend/src/containers/MetricsStepper/index.tsx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/frontend/src/containers/MetricsStepper/index.tsx b/frontend/src/containers/MetricsStepper/index.tsx index 2f518d2d7..2462910f7 100644 --- a/frontend/src/containers/MetricsStepper/index.tsx +++ b/frontend/src/containers/MetricsStepper/index.tsx @@ -193,10 +193,11 @@ const MetricsStepper = () => { metricsConfig.cycleTimeSettingsType === CycleTimeSettingsTypes.BY_COLUMN && metricsConfig.cycleTimeSettings.filter(({ value }) => value === METRICS_CONSTANTS.doneValue).length > 1; const isShowDeploymentFrequency = - requiredData.includes(RequiredData.DeploymentFrequency) || - requiredData.includes(RequiredData.PipelineChangeFailureRate) || - requiredData.includes(RequiredData.LeadTimeForChanges) || - requiredData.includes(RequiredData.PipelineMeanTimeToRecovery); + (requiredData.includes(RequiredData.DeploymentFrequency) || + requiredData.includes(RequiredData.PipelineChangeFailureRate) || + requiredData.includes(RequiredData.LeadTimeForChanges) || + requiredData.includes(RequiredData.PipelineMeanTimeToRecovery)) && + pipelineTools.type !== PIPELINE_TOOL_OTHER_OPTION; const isShowSourceControlConfiguration = requiredData.includes(RequiredData.DeploymentFrequency) || requiredData.includes(RequiredData.PipelineChangeFailureRate) ||