Skip to content

Commit

Permalink
Merge pull request #1860 from akto-api-security/hotfix/sanity_check
Browse files Browse the repository at this point in the history
add undefined check
  • Loading branch information
Ark2307 authored Dec 24, 2024
2 parents 4d8be68 + ac3fad8 commit 40f9df1
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ let headers = [
const MAX_SEVERITY_THRESHOLD = 100000;

function getStatus(state) {
return state._name ? state._name : (state.name ? state.name : state)
if (state)
return state._name ? state._name : (state.name ? state.name : state)
return "UNKNOWN"
}

function getOrderPriority(state) {
Expand Down

0 comments on commit 40f9df1

Please sign in to comment.