diff --git a/apps/console/src/hooks/graph/AuditGraph.ts b/apps/console/src/hooks/graph/AuditGraph.ts index 624c0cce0..90cd8536e 100644 --- a/apps/console/src/hooks/graph/AuditGraph.ts +++ b/apps/console/src/hooks/graph/AuditGraph.ts @@ -41,15 +41,14 @@ export const auditNodeQuery = graphql` name validFrom validUntil - report { + reportFile { id - filename + fileName mimeType size downloadUrl createdAt } - reportUrl state framework { id @@ -82,9 +81,9 @@ export const createAuditMutation = graphql` name validFrom validUntil - report { + reportFile { id - filename + fileName } state framework { @@ -108,9 +107,9 @@ export const updateAuditMutation = graphql` name validFrom validUntil - report { + reportFile { id - filename + fileName } state framework { @@ -241,9 +240,9 @@ export const uploadAuditReportMutation = graphql` uploadAuditReport(input: $input) { audit { id - report { + reportFile { id - filename + fileName downloadUrl createdAt } @@ -286,9 +285,9 @@ export const deleteAuditReportMutation = graphql` deleteAuditReport(input: $input) { audit { id - report { + reportFile { id - filename + fileName downloadUrl createdAt } diff --git a/apps/console/src/pages/organizations/audits/AuditDetailsPage.tsx b/apps/console/src/pages/organizations/audits/AuditDetailsPage.tsx index 506e3f220..5a1c3f2b0 100644 --- a/apps/console/src/pages/organizations/audits/AuditDetailsPage.tsx +++ b/apps/console/src/pages/organizations/audits/AuditDetailsPage.tsx @@ -141,7 +141,7 @@ export default function AuditDetailsPage(props: Props) { }); const handleDeleteReport = () => { - if (!auditEntry.report || !auditEntry.id) return; + if (!auditEntry.reportFile || !auditEntry.id) return; confirm( async () => { @@ -152,7 +152,7 @@ export default function AuditDetailsPage(props: Props) { __( "This will permanently delete the audit report \"%s\". This action cannot be undone.", ), - auditEntry.report.filename, + auditEntry.reportFile.fileName, ), }, ); @@ -253,7 +253,7 @@ export default function AuditDetailsPage(props: Props) {
- {auditEntry.report.filename} + {auditEntry.reportFile.fileName}