UI: Fix condition for modal rendering (#28866)

## For #28861 

- Correctly interpret `0` as a valid team id for rendering the modal

![Screenshot 2025-05-06 at 10 04
46 AM](https://github.com/user-attachments/assets/50c890d5-8cd1-4452-b14f-864907ae53f3)

- [x] Manual QA for all new/changed functionality

Co-authored-by: Jacob Shandling <jacob@fleetdm.com>
This commit is contained in:
jacobshandling 2025-05-06 10:24:15 -07:00 committed by GitHub
parent 7ad72ad47c
commit 260b9ee6c3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1779,7 +1779,7 @@ const ManageHostsPage = ({
{showAddHostsModal && renderAddHostsModal()}
{showTransferHostModal && renderTransferHostModal()}
{showDeleteHostModal && renderDeleteHostModal()}
{showRunScriptBatchModal && currentTeamId && (
{showRunScriptBatchModal && currentTeamId !== undefined && (
<RunScriptBatchModal
selectedHostIds={selectedHostIds}
onCancel={toggleRunScriptBatchModal}