[unreleased bug] Fleet UI: Remove stack table controls on vulnerabili… (#17130)

This commit is contained in:
RachelElysia
2024-02-23 16:02:54 -05:00
committed by GitHub
parent 22bcc6cce7
commit 67cff18106
2 changed files with 3 additions and 6 deletions
@@ -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
@@ -10,10 +10,6 @@
}
}
.empty-table__container {
margin: 1.5rem auto;
}
// used to position header text with premium icon correctly
.column-header {
display: flex;