File tree Expand file tree Collapse file tree 2 files changed +7
-9
lines changed Expand file tree Collapse file tree 2 files changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -28,11 +28,9 @@ export interface ImageCardAccordionProps extends MaterialSecurityInfoType {
28
28
isScanned : boolean
29
29
isScanEnabled : boolean
30
30
SecurityModalSidebar : React . FC < SidebarPropsType >
31
- getSecurityScan : ( {
32
- appId,
33
- envId,
34
- artifactId,
35
- } : Pick < AppDetailsPayload , 'appId' | 'envId' | 'artifactId' > ) => Promise < ResponseType < ApiResponseResultType > >
31
+ getSecurityScan : (
32
+ props : Pick < AppDetailsPayload , 'appId' | 'envId' | 'artifactId' > ,
33
+ ) => Promise < ResponseType < ApiResponseResultType > >
36
34
}
37
35
38
36
export interface SecurityDetailsType {
Original file line number Diff line number Diff line change @@ -15,10 +15,10 @@ export const getExecutionDetails = async (
15
15
const url = getUrlWithSearchParams ( ROUTES . SECURITY_SCAN_EXECUTION_DETAILS , executionDetailPayload )
16
16
const response = await get ( url )
17
17
const parsedResult = {
18
- ...response . result ,
19
- scanExecutionId : response . result . ScanExecutionId ,
20
- lastExecution : response . result . executionTime ,
21
- objectType : response . result . objectType ,
18
+ ...( response . result || { } ) ,
19
+ scanExecutionId : response . result ? .ScanExecutionId ,
20
+ lastExecution : response . result ? .executionTime ,
21
+ objectType : response . result ? .objectType ,
22
22
vulnerabilities :
23
23
response . result ?. vulnerabilities ?. map ( ( cve ) => ( {
24
24
name : cve . cveName ,
You can’t perform that action at this time.
0 commit comments