diff --git a/public/store/CorrelationsStore.ts b/public/store/CorrelationsStore.ts index ba2a53240..3d806cbd3 100644 --- a/public/store/CorrelationsStore.ts +++ b/public/store/CorrelationsStore.ts @@ -268,12 +268,16 @@ export class CorrelationsStore implements ICorrelationsStore { ); if (response?.ok) { - const correlatedFindings = response.response.findings.map((f) => { - return { - ...allFindings[f.finding], - correlationScore: f.score < 0.01 ? '0.01' : f.score.toFixed(2), - }; + const correlatedFindings: CorrelationFinding[] = []; + response.response.findings.forEach((f) => { + if (allFindings[f.finding]) { + correlatedFindings.push({ + ...allFindings[f.finding], + correlationScore: f.score < 0.01 ? '0.01' : f.score.toFixed(2), + }); + } }); + return { finding: allFindings[finding], correlatedFindings,