Skip to content

Commit

Permalink
Fix filters of the vulnerabilities by file (#544)
Browse files Browse the repository at this point in the history
When you update filter of the page of vulnerability by file
not is possible see data because allways filter of the vulnType
is with value "Vulnerability" not changed to other type

Signed-off-by: wilian <[email protected]>
  • Loading branch information
wiliansilvazup authored Jan 25, 2022
1 parent 1a0e227 commit bba6d50
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions manager/src/pages/Overview/Vulnerabilities/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -265,11 +265,7 @@ const Vulnerabilities: React.FC = () => {
setSelectedFile(vulFile);

vulnerabilitiesService
.getVulnerabilitiesOfFile(
{ workspaceID: workspaceId, repositoryID: vulFile.repositoryID },
pagination,
vulFile.file
)
.getVulnerabilitiesOfFile(filters, pagination, vulFile.file)
.then((result) => {
let vulnerabilities: Vulnerability[] = result?.data?.content?.data;
vulnerabilities = applyCurrentUpdatesVulnerabilities(vulnerabilities);
Expand Down

0 comments on commit bba6d50

Please sign in to comment.