diff --git a/frontend/pages/SoftwarePage/SoftwarePage.tsx b/frontend/pages/SoftwarePage/SoftwarePage.tsx
index 2e904e912b..574c053678 100644
--- a/frontend/pages/SoftwarePage/SoftwarePage.tsx
+++ b/frontend/pages/SoftwarePage/SoftwarePage.tsx
@@ -37,7 +37,6 @@ import AddSoftwareModal from "./components/AddSoftwareModal";
import {
buildSoftwareFilterQueryParams,
getSoftwareFilterFromQueryParams,
- buildSoftwareVulnFiltersQueryParams,
getSoftwareVulnFiltersFromQueryParams,
ISoftwareVulnFilters,
} from "./SoftwareTitles/SoftwareTable/helpers";
@@ -485,6 +484,7 @@ const SoftwarePage = ({ children, router, location }: ISoftwarePageProps) => {
onExit={toggleSoftwareFiltersModal}
onSubmit={onApplyVulnFilters}
vulnFilters={softwareVulnFilters}
+ isPremiumTier={isPremiumTier || false}
/>
)}
diff --git a/frontend/pages/SoftwarePage/components/SoftwareFiltersModal/SoftwareFiltersModal.tsx b/frontend/pages/SoftwarePage/components/SoftwareFiltersModal/SoftwareFiltersModal.tsx
index bac446d918..0c9ec70b35 100644
--- a/frontend/pages/SoftwarePage/components/SoftwareFiltersModal/SoftwareFiltersModal.tsx
+++ b/frontend/pages/SoftwarePage/components/SoftwareFiltersModal/SoftwareFiltersModal.tsx
@@ -20,12 +20,14 @@ interface ISoftwareFiltersModalProps {
onExit: () => void;
onSubmit: (vulnFilters: ISoftwareVulnFilters) => void;
vulnFilters: ISoftwareVulnFiltersParams;
+ isPremiumTier: boolean;
}
const SoftwareFiltersModal = ({
onExit,
onSubmit,
vulnFilters,
+ isPremiumTier,
}: ISoftwareFiltersModalProps) => {
const [vulnSoftwareFilterEnabled, setVulnSoftwareFilterEnabled] = useState(
vulnFilters.vulnerable || false
@@ -50,7 +52,7 @@ const SoftwareFiltersModal = ({
const onApplyFilters = () => {
onSubmit({
vulnerable: vulnSoftwareFilterEnabled,
- exploit: hasKnownExploit,
+ exploit: hasKnownExploit || undefined,
min_cvss_score: severity?.minSeverity || undefined,
max_cvss_score: severity?.maxSeverity || undefined,
});
@@ -78,27 +80,31 @@ const SoftwareFiltersModal = ({
inactiveText="Vulnerable software"
activeText="Vulnerable software"
/>
-