Skip to content

Commit

Permalink
Fix duplicate OS versions in CVE report modal dropdown (#2125)
Browse files Browse the repository at this point in the history
  • Loading branch information
leSamo authored Jul 10, 2024
1 parent 2890b7a commit 046359e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { compareVersions } from '../../../../Helpers/MiscHelper';

const buildOSGroups = (osVersions = []) => {
let groups = osVersions.reduce((acc, version) => {
let groups = osVersions.filter(os => os.name === 'RHEL').reduce((acc, version) => {
const { major, minor } = version;
const groupName = `RHEL ${major}`;

Expand Down

0 comments on commit 046359e

Please sign in to comment.