Skip to content

Commit

Permalink
fix: vex creation (#53)
Browse files Browse the repository at this point in the history
Co-authored-by: Christopher Langton <chris@langton.cloud>
  • Loading branch information
0x73746F66 and chrisdlangton authored Oct 28, 2024
1 parent 21291e2 commit 4052d8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/v1/issue/[uuid].js
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ export async function onRequestGet(context) {
seenAt = new Date().getTime()
}
const vexExist = finding.triage.some(t => t.analysisState === analysisState).length !== 0
let vexData = finding.triage.filter(t => t.analysisState === analysisState).pop()
let vexData = finding.triage.filter(t => t.analysisState === analysisState).pop() || {}
if (!vexExist) {
vexData.analysisState = analysisState
vexData.findingUuid = finding.uuid
Expand Down

0 comments on commit 4052d8c

Please sign in to comment.