Skip to content

Commit

Permalink
Handling already for ignored issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Ark2307 committed Jan 2, 2025
1 parent b942853 commit aeb42aa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,7 @@ const editableConfigsComp = (

const handleRefreshTableCount = async(summaryHexId) => {
await api.handleRefreshTableCount(summaryHexId).then((res) => {
func.setToast("Re-calculating issues count")
func.setToast(true, false, "Re-calculating issues count")
setSecondaryPopover(false)
})
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,11 @@ function TestRunResultFlyout(props) {

function ignoreAction(ignoreReason){
const severity = (selectedTestRunResult && selectedTestRunResult.vulnerable) ? issueDetails.severity : "";
issuesApi.bulkUpdateIssueStatus([issueDetails.id], "IGNORED", ignoreReason, {[selectedTestRunResult.id]: severity.toUpperCase()} ).then((res) => {
let obj = {}
if(issueDetails?.testRunIssueStatus !== "IGNORED"){
obj = {[selectedTestRunResult.id]: severity.toUpperCase()}
}
issuesApi.bulkUpdateIssueStatus([issueDetails.id], "IGNORED", ignoreReason, obj ).then((res) => {
func.setToast(true, false, `Issue ignored`)
})
}
Expand Down

0 comments on commit aeb42aa

Please sign in to comment.