Skip to content

Refs #38760 - Default hostgroup status to PENDING in reassign modal#10868

Merged
jeremylenz merged 1 commit intotheforeman:developfrom
nofaralfasi:SAT-38571-refs
Feb 16, 2026
Merged

Refs #38760 - Default hostgroup status to PENDING in reassign modal#10868
jeremylenz merged 1 commit intotheforeman:developfrom
nofaralfasi:SAT-38571-refs

Conversation

@nofaralfasi
Copy link
Contributor

When the BulkReassignHostgroupModal first renders, the API status for hostgroups is undefined since the fetch hasn't completed yet. This caused a PropTypes warning because SkeletonLoader requires a string status prop.

Default to STATUS.PENDING when undefined, following the same pattern used in HostDetails. This ensures the skeleton loader displays correctly while waiting for the API response.

When the BulkReassignHostgroupModal first renders, the API status for
hostgroups is undefined since the fetch hasn't completed yet. This
caused a PropTypes warning because SkeletonLoader requires a string
status prop.

Default to STATUS.PENDING when undefined, following the same pattern
used in HostDetails. This ensures the skeleton loader displays
correctly while waiting for the API response.
@jeremylenz jeremylenz merged commit a6748f7 into theforeman:develop Feb 16, 2026
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments