From 67cff181069d5ff8b8ed53ef308c331e6614457f Mon Sep 17 00:00:00 2001 From: RachelElysia <71795832+RachelElysia@users.noreply.github.com> Date: Fri, 23 Feb 2024 16:02:54 -0500 Subject: [PATCH] =?UTF-8?q?[unreleased=20bug]=20Fleet=20UI:=20Remove=20sta?= =?UTF-8?q?ck=20table=20controls=20on=20vulnerabili=E2=80=A6=20(#17130)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../SoftwareVulnerabilitiesTable.tsx | 5 +++-- .../components/SoftwareVulnerabilitiesTable/_styles.scss | 4 ---- 2 files changed, 3 insertions(+), 6 deletions(-) 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;