fix build error
Deploy Frontend / build-and-deploy (push) Successful in 25s
Details
Deploy Frontend / build-and-deploy (push) Successful in 25s
Details
This commit is contained in:
parent
3c3879a10e
commit
eacb0c2614
|
|
@ -228,7 +228,7 @@ export default function HierarchiesPage() {
|
|||
setPresetGroup(null)
|
||||
}
|
||||
|
||||
const isAllSelected = data?.data?.length > 0 && selectedIds.length === data.data.length
|
||||
const isAllSelected = (data?.data?.length ?? 0) > 0 && selectedIds.length === (data?.data?.length ?? 0)
|
||||
const isIndeterminate = selectedIds.length > 0 && selectedIds.length < (data?.data?.length || 0)
|
||||
|
||||
return (
|
||||
|
|
|
|||
Loading…
Reference in New Issue