@@ -366,7 +366,7 @@ export default function CIPipeline({
366
366
}
367
367
setPresetPlugins ( _presetPlugin )
368
368
setSharedPlugins ( _sharedPlugin )
369
- getMandatoryPluginData ( _formData , [ ..._presetPlugin , ..._sharedPlugin ] , true )
369
+ getMandatoryPluginData ( _formData , [ ..._presetPlugin , ..._sharedPlugin ] )
370
370
} )
371
371
. catch ( ( error : ServerErrors ) => {
372
372
showError ( error )
@@ -385,7 +385,6 @@ export default function CIPipeline({
385
385
const getMandatoryPluginData = (
386
386
_formData : PipelineFormType ,
387
387
pluginList : PluginDetailType [ ] ,
388
- referPrevState : boolean = false ,
389
388
) : void => {
390
389
if ( ! isJobCard && processPluginData && prepareFormData && pluginList . length ) {
391
390
let branchName = ''
@@ -401,11 +400,7 @@ export default function CIPipeline({
401
400
processPluginData ( _formData , pluginList , appId , ciPipelineId , branchName )
402
401
. then ( ( response : MandatoryPluginDataType ) => {
403
402
setMandatoryPluginData ( response )
404
- if ( referPrevState ) {
405
- setFormData ( ( prevForm ) => prepareFormData ( { ...prevForm } , response ?. pluginData ?? [ ] ) )
406
- } else {
407
- setFormData ( prepareFormData ( _formData , response ?. pluginData ?? [ ] ) )
408
- }
403
+ setFormData ( ( prevForm ) => prepareFormData ( { ...prevForm } , response ?. pluginData ?? [ ] ) )
409
404
} )
410
405
. catch ( ( error : ServerErrors ) => {
411
406
showError ( error )
0 commit comments