Skip to content

Commit

Permalink
Merge pull request #1697 from akto-api-security/fix/fix_run_test_modal
Browse files Browse the repository at this point in the history
Fixing redundant categories call
  • Loading branch information
notshivansh authored Nov 6, 2024
2 parents 7b01ba3 + 5b2af53 commit 854a97c
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,9 @@ const transform = {
}

if(result?.value?.categories && result?.value?.categories !== undefined && result?.value?.categories.length > 0){
categories.push(...result.value.categories);
if(categories.length === 0){
categories.push(...result.value.categories);
}
}
}
}
Expand Down

0 comments on commit 854a97c

Please sign in to comment.