Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changes/40327-filter
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Updated host software library to always allow filtering.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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>
Expand Down
Loading