Skip to content

Commit ad26cb8

Browse files
Merge pull request #2663 from devtron-labs/fix/hotfix-32-main-sync
fix: template view plugin details flow
2 parents 33c4ae4 + ca3f05c commit ad26cb8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/components/cdPipeline/CDPipeline.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,8 @@ export default function CDPipeline({
279279

280280
const isGitOpsRepoNotConfigured = isExternalArgoPipeline ? false : isGitOpsRepoNotConfiguredProp
281281

282+
const areMandatoryPluginPossible = !!processPluginData && !isTemplateView
283+
282284
const handleHideScopedVariableWidgetUpdate: PipelineContext['handleHideScopedVariableWidgetUpdate'] = (
283285
hideScopedVariableWidgetValue: boolean,
284286
) => {
@@ -312,7 +314,7 @@ export default function CDPipeline({
312314
const postBuildPluginIds = getPluginIdsFromBuildStage(form.postBuildStage)
313315
const uniquePluginIds = Array.from(new Set([...preBuildPluginIds, ...postBuildPluginIds]))
314316

315-
if (processPluginData) {
317+
if (areMandatoryPluginPossible) {
316318
await getMandatoryPluginData(form, uniquePluginIds)
317319
return
318320
}
@@ -448,7 +450,7 @@ export default function CDPipeline({
448450
}
449451

450452
const getMandatoryPluginData: BuildCDProps['getMandatoryPluginData'] = async (form, requiredPluginIds = []) => {
451-
if (!processPluginData || isTemplateView) {
453+
if (!areMandatoryPluginPossible) {
452454
return
453455
}
454456

0 commit comments

Comments
 (0)