V2Wizard: Show packages only with a search term

Fixes #2012

Packages from custom repos stayed in the table upon clearing the search input. This show the results only when searchTerm is not empty.
This commit is contained in:
regexowl 2024-04-26 12:50:41 +02:00 committed by Lucas Garfield
parent e9d28498e1
commit ff2d629fc6

View file

@ -900,7 +900,9 @@ const Packages = () => {
{searchTerm &&
transformedPackages.length >= 100 &&
handleExactMatch()}
{transformedPackages.length < 100 && composePkgTable()}
{(searchTerm || toggleSelected === 'toggle-selected') &&
transformedPackages.length < 100 &&
composePkgTable()}
</Tbody>
</Table>
<Pagination