use subGroupCount instead (#28719)

fixes: #28684

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
This commit is contained in:
Erik Jan de Wit 2024-04-15 14:32:28 +02:00 committed by GitHub
parent 2ab8bf852d
commit 03c2629afc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -134,7 +134,7 @@ export const Group = () => {
name="extendChildren" name="extendChildren"
isChecked={field.value} isChecked={field.value}
onChange={field.onChange} onChange={field.onChange}
isDisabled={group.subGroups?.length === 0} isDisabled={group.subGroupCount === 0}
/> />
)} )}
/> />