diff --git a/frontend/pages/SoftwarePage/SoftwareOS/SoftwareOSTable/SoftwareOSTable.tsx b/frontend/pages/SoftwarePage/SoftwareOS/SoftwareOSTable/SoftwareOSTable.tsx
index 56a3aac5f7..8157684190 100644
--- a/frontend/pages/SoftwarePage/SoftwareOS/SoftwareOSTable/SoftwareOSTable.tsx
+++ b/frontend/pages/SoftwarePage/SoftwareOS/SoftwareOSTable/SoftwareOSTable.tsx
@@ -173,13 +173,19 @@ const SoftwareOSTable = ({
router.push(path);
};
+ // Determines if a user should be able to filter the table
+ const hasData = data?.os_versions && data?.os_versions.length > 0;
+ const hasPlatformFilter = platform !== "all";
+
+ const showFilterHeaders = isSoftwareEnabled && (hasData || hasPlatformFilter);
+
const renderSoftwareCount = () => {
if (!data) return null;
return (
<>
- {data?.os_versions && data?.counts_updated_at && (
+ {showFilterHeaders && data?.counts_updated_at && (
<>>}
+ customControl={showFilterHeaders ? renderPlatformDropdown : undefined}
disableNextPage={!data?.meta.has_next_results}
searchable={false}
onQueryChange={onQueryChange}
- stackControls
renderCount={renderSoftwareCount}
renderTableHelpText={renderTableHelpText}
disableMultiRowSelect