File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
src/components/cdPipeline Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -279,6 +279,8 @@ export default function CDPipeline({
279
279
280
280
const isGitOpsRepoNotConfigured = isExternalArgoPipeline ? false : isGitOpsRepoNotConfiguredProp
281
281
282
+ const areMandatoryPluginPossible = ! ! processPluginData && ! isTemplateView
283
+
282
284
const handleHideScopedVariableWidgetUpdate : PipelineContext [ 'handleHideScopedVariableWidgetUpdate' ] = (
283
285
hideScopedVariableWidgetValue : boolean ,
284
286
) => {
@@ -312,7 +314,7 @@ export default function CDPipeline({
312
314
const postBuildPluginIds = getPluginIdsFromBuildStage ( form . postBuildStage )
313
315
const uniquePluginIds = Array . from ( new Set ( [ ...preBuildPluginIds , ...postBuildPluginIds ] ) )
314
316
315
- if ( processPluginData ) {
317
+ if ( areMandatoryPluginPossible ) {
316
318
await getMandatoryPluginData ( form , uniquePluginIds )
317
319
return
318
320
}
@@ -448,7 +450,7 @@ export default function CDPipeline({
448
450
}
449
451
450
452
const getMandatoryPluginData : BuildCDProps [ 'getMandatoryPluginData' ] = async ( form , requiredPluginIds = [ ] ) => {
451
- if ( ! processPluginData || isTemplateView ) {
453
+ if ( ! areMandatoryPluginPossible ) {
452
454
return
453
455
}
454
456
You can’t perform that action at this time.
0 commit comments