Do not show table footer under Target specific hosts table (#41252)

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

# Checklist for submitter

- [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

### Before

<img width="1477" height="590" alt="Screenshot 2026-03-09 at 11 50
49 AM"
src="https://github.com/user-attachments/assets/f180371f-c83c-4bee-bfa1-8c78afd46d90"
/>

### After

<img width="1471" height="531" alt="Screenshot 2026-03-09 at 11 50
29 AM"
src="https://github.com/user-attachments/assets/341f7f6c-97b2-4a55-8543-dda0e7f3e867"
/>
This commit is contained in:
Nico
2026-03-09 17:23:44 -03:00
committed by GitHub
parent d4a456129e
commit a1592259f4
2 changed files with 3 additions and 2 deletions
+1
View File
@@ -0,0 +1 @@
* Fixed table footer rendering unexpectedly in the host targets search dropdown.
@@ -574,9 +574,9 @@ const DataTable = ({
// table is client-side paginated with more than 1 page of rows
((isClientSidePagination && (canNextPage || canPreviousPage)) ||
// table's pagination is externally controlled
renderPagination ||
renderPagination?.() != null ||
// there is help text and at least 1 row of data
(renderTableHelpText && !!rows?.length));
(renderTableHelpText?.() != null && !!rows?.length));
return (
<div className={baseClass}>