@rhc-shared-components/packages-table 1.0.5 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +3 -0
- package/dist/index.modern.js +3 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2533,6 +2533,9 @@ var PackagesTable = function PackagesTable(_ref) {
|
|
|
2533
2533
|
return vulnerability.cve_id === value.cve_id;
|
|
2534
2534
|
}) === index;
|
|
2535
2535
|
});
|
|
2536
|
+
uniqueVulnerabilities.filter(function (vulnerability) {
|
|
2537
|
+
if (vulnerability.rpm_nvra_with_link_data.length > 0) return vulnerability;
|
|
2538
|
+
});
|
|
2536
2539
|
setUniqueVulnerabilities(uniqueVulnerabilities);
|
|
2537
2540
|
}, [rpms, vulnerabilities]);
|
|
2538
2541
|
InsertCss();
|
package/dist/index.modern.js
CHANGED
|
@@ -2338,6 +2338,9 @@ const PackagesTable = ({
|
|
|
2338
2338
|
uniqueVulnerabilities.sort(vulnerability => severitySortOrder[vulnerability.severity]);
|
|
2339
2339
|
// filter out vulnerabilities with duplicate CVE IDs
|
|
2340
2340
|
uniqueVulnerabilities.filter((value, index, self) => self.findIndex(vulnerability => vulnerability.cve_id === value.cve_id) === index);
|
|
2341
|
+
uniqueVulnerabilities.filter(vulnerability => {
|
|
2342
|
+
if (vulnerability.rpm_nvra_with_link_data.length > 0) return vulnerability;
|
|
2343
|
+
});
|
|
2341
2344
|
setUniqueVulnerabilities(uniqueVulnerabilities);
|
|
2342
2345
|
}, [_rpms, _vulnerabilities]);
|
|
2343
2346
|
InsertCss();
|