@@ -22,11 +22,7 @@ import {
22
22
sanitizeUserApprovalList ,
23
23
stringComparatorBySortOrder ,
24
24
} from '@Shared/Helpers'
25
- import {
26
- PolicyBlockInfo ,
27
- RuntimeParamsAPIResponseType ,
28
- RuntimePluginVariables ,
29
- } from '@Shared/types'
25
+ import { PolicyBlockInfo , RuntimeParamsAPIResponseType , RuntimePluginVariables } from '@Shared/types'
30
26
import { GitProviderType , ROUTES } from './Constants'
31
27
import { getUrlWithSearchParams , sortCallback } from './Helper'
32
28
import {
@@ -268,7 +264,7 @@ export const parseRuntimeParams = (response: RuntimeParamsAPIResponseType): Runt
268
264
const runtimeParams = ( response ?. runtimePluginVariables ?? [ ] ) . map < RuntimePluginVariables > ( ( variable ) => ( {
269
265
...variable ,
270
266
defaultValue : variable . value ,
271
- stepVariableId : variable . stepVariableId || Math . floor ( new Date ( ) . valueOf ( ) * Math . random ( ) )
267
+ stepVariableId : variable . stepVariableId || Math . floor ( new Date ( ) . valueOf ( ) * Math . random ( ) ) ,
272
268
} ) )
273
269
274
270
runtimeParams . push ( ...envVariables )
@@ -528,14 +524,15 @@ export const getAppsInfoForEnv = async ({ envId, appIds }: GetAppsInfoForEnvProp
528
524
529
525
return {
530
526
appCount : response . result ?. appCount ?? 0 ,
531
- apps : ( response . result ?. apps ?? [ ] ) . reduce < AppMeta [ ] > ( ( agg , { appId, appName, appStatus} ) => {
527
+ apps : ( response . result ?. apps ?? [ ] ) . reduce < AppMeta [ ] > ( ( agg , { appId, appName, appStatus } ) => {
532
528
if ( ! appId ) {
533
529
return agg
534
530
}
535
531
agg . push ( {
536
- appId, appName : appName || '' ,
532
+ appId,
533
+ appName : appName || '' ,
537
534
appStatus : appStatus || StatusType . UNKNOWN ,
538
535
} )
539
536
} , [ ] ) ,
540
537
}
541
- }
538
+ }
0 commit comments