always show the filters and search bar (#41163)

<!-- Add the related story/sub-task/bug number, like Resolves #123, or
remove if NA -->
**Related issue:** Resolves #40327 

# Checklist for submitter

If some of the following don't apply, delete the relevant line.

- [x] Changes file added for user-visible changes in `changes/`,
`orbit/changes/` or `ee/fleetd-chrome/changes`.
See [Changes
files](https://github.com/fleetdm/fleet/blob/main/docs/Contributing/guides/committing-changes.md#changes-files)
for more information.

## Testing

- [x] QA'd all new/changed functionality manually
This commit is contained in:
Jahziel Villasana-Espinoza
2026-03-09 09:05:36 -04:00
committed by GitHub
parent 03f7d2b0ea
commit 49b7db18fa
2 changed files with 3 additions and 8 deletions
+1
View File
@@ -0,0 +1 @@
- Updated host software library to always allow filtering.
@@ -156,12 +156,6 @@ const HostSoftwareLibraryTable = ({
return <EmptySoftwareTable noSearchQuery={searchQuery === ""} />;
}, [searchQuery]);
// Determines if a user should be able to filter or search in the table
const hasData = data && data.software.length > 0;
const hasQuery = searchQuery !== "";
const showFilterHeaders = hasData || hasQuery;
if (isAndroid(platform)) {
return (
<EmptyTable
@@ -212,11 +206,11 @@ const HostSoftwareLibraryTable = ({
pageSize={DEFAULT_PAGE_SIZE}
inputPlaceHolder="Search by name"
onQueryChange={onQueryChange}
customControl={showFilterHeaders ? renderCustomControls : undefined}
customControl={renderCustomControls}
emptyComponent={memoizedEmptyComponent}
showMarkAllPages={false}
isAllPagesSelected={false}
searchable={showFilterHeaders}
searchable
manualSortBy
/>
</div>