Skip to content

Commit

Permalink
address pr comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Omolola-Akinleye committed May 15, 2023
1 parent 5dfdeac commit 3f0ac33
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,7 @@ const VulnerabilitiesContent = ({ dataView }: { dataView: DataView }) => {
const invalidIndex = -1;

const selectedVulnerability = useMemo(() => {
return slicedPage?.find(
(_vulnerabilityRecord: VulnerabilityRecord, i) => i === urlQuery.vulnerabilityIndex
);
return slicedPage[urlQuery.vulnerabilityIndex];
}, [slicedPage, urlQuery.vulnerabilityIndex]);

const onCloseFlyout = () => {
Expand Down

0 comments on commit 3f0ac33

Please sign in to comment.