diff --git a/frontend/pages/SoftwarePage/SoftwareVulnerabilities/SoftwareVulnerabilitiesTable/SoftwareVulnerabilitiesTable.tsx b/frontend/pages/SoftwarePage/SoftwareVulnerabilities/SoftwareVulnerabilitiesTable/SoftwareVulnerabilitiesTable.tsx index 750386877c..7c319e9c2c 100644 --- a/frontend/pages/SoftwarePage/SoftwareVulnerabilities/SoftwareVulnerabilitiesTable/SoftwareVulnerabilitiesTable.tsx +++ b/frontend/pages/SoftwarePage/SoftwareVulnerabilities/SoftwareVulnerabilitiesTable/SoftwareVulnerabilitiesTable.tsx @@ -132,7 +132,9 @@ const SoftwareVulnerabilitiesTable = ({ // determines if a user be able to search in the table const searchable = isSoftwareEnabled && - (!!data || query !== "" || showExploitedVulnerabilitiesOnly); + (!!data?.vulnerabilities || + query !== "" || + showExploitedVulnerabilitiesOnly); const vulnerabilitiesTableHeaders = useMemo(() => { if (!data) return []; @@ -267,7 +269,6 @@ const SoftwareVulnerabilitiesTable = ({ customControl={ searchable ? renderExploitedVulnerabilitiesDropdown : undefined } - stackControls renderCount={renderVulnerabilityCount} renderFooter={renderTableFooter} disableMultiRowSelect diff --git a/frontend/pages/SoftwarePage/components/SoftwareVulnerabilitiesTable/_styles.scss b/frontend/pages/SoftwarePage/components/SoftwareVulnerabilitiesTable/_styles.scss index 6bcc7060e8..736bb51064 100644 --- a/frontend/pages/SoftwarePage/components/SoftwareVulnerabilitiesTable/_styles.scss +++ b/frontend/pages/SoftwarePage/components/SoftwareVulnerabilitiesTable/_styles.scss @@ -10,10 +10,6 @@ } } - .empty-table__container { - margin: 1.5rem auto; - } - // used to position header text with premium icon correctly .column-header { display: flex;