Skip to content

Commit 09f0499

Browse files
authored
Merge pull request #2011 from akto-api-security/hotfix/fix_report_sample_message
Fixing report check
2 parents 3c83e2a + 004cc6d commit 09f0499

File tree

1 file changed

+2
-3
lines changed
  • apps/dashboard/web/polaris_web/web/src/apps/dashboard/pages/testing/vulnerability_report

1 file changed

+2
-3
lines changed

apps/dashboard/web/polaris_web/web/src/apps/dashboard/pages/testing/vulnerability_report/Issue.jsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,6 @@ const Issue = ({ vulnerableApi, references, cwes }) => {
109109
const sampleDataEditorComp = parsedSampleDataMessage == null ? (<></>) : (
110110
<HttpRequestResponseViewer data={parsedSampleDataMessage} />
111111
)
112-
113112

114113
return (
115114
<>
@@ -129,11 +128,11 @@ const Issue = ({ vulnerableApi, references, cwes }) => {
129128
</Box>
130129

131130
{
132-
vulnerableApi?.testResults?.[0]?.["message"] != null &&
131+
parsedSampleDataMessage != null &&
133132
<VerticalStack gap={1}>
134133
<Text variant="headingSm">Evidence</Text>
135134
<VerticalStack gap={2}>
136-
{sampleDataEditorComp}
135+
<HttpRequestResponseViewer data={parsedSampleDataMessage} />
137136
</VerticalStack>
138137
</VerticalStack>
139138
}

0 commit comments

Comments
 (0)