@@ -131,9 +131,8 @@ const BulkCITrigger = ({
131
131
getMaterialData ( )
132
132
} , [ ] )
133
133
134
-
135
- const getRunTimeParamsData = ( _materialListMap : Record < string , any [ ] > ) : void => {
136
- const runTimeParamsPromiseList = appList . map ( ( appDetails ) => {
134
+ const getRuntimeParamsData = ( _materialListMap : Record < string , any [ ] > ) : void => {
135
+ const runtimeParamsPromiseList = appList . map ( ( appDetails ) => {
137
136
if ( getIsAppUnorthodox ( appDetails ) || ! _materialListMap [ appDetails . appId ] ) {
138
137
return {
139
138
[ appDetails . ciPipelineId ] : [ ] ,
@@ -142,8 +141,8 @@ const BulkCITrigger = ({
142
141
return getRuntimeParams ( appDetails . ciPipelineId )
143
142
} )
144
143
145
- if ( runTimeParamsPromiseList ? .length ) {
146
- Promise . all ( runTimeParamsPromiseList )
144
+ if ( runtimeParamsPromiseList . length ) {
145
+ Promise . all ( runtimeParamsPromiseList )
147
146
. then ( ( responses ) => {
148
147
const _runtimeParams : Record < string , KeyValueListType [ ] > = { }
149
148
responses . forEach ( ( res , index ) => {
@@ -177,11 +176,12 @@ const BulkCITrigger = ({
177
176
responses . forEach ( ( res , index ) => {
178
177
_materialListMap [ appList [ index ] ?. appId ] = res ?. [ 'result' ]
179
178
} )
179
+ // These two handlers should be imported from elsewhere
180
180
if ( getCIBlockState ) {
181
181
getPolicyEnforcementData ( _materialListMap )
182
182
}
183
183
if ( getRuntimeParams ) {
184
- getRunTimeParamsData ( _materialListMap )
184
+ getRuntimeParamsData ( _materialListMap )
185
185
}
186
186
updateBulkInputMaterial ( _materialListMap )
187
187
if ( ! getIsAppUnorthodox ( selectedApp ) ) {
0 commit comments