1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-01-10 01:17:40 +03:00

M #~: Minor fixes to datatable (#2184)

This commit is contained in:
Sergio Betanzos 2022-06-24 10:57:39 +02:00 committed by GitHub
parent cf535c49fc
commit 649f6049eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -152,7 +152,9 @@ const EnhancedTable = ({
const selectedRows = useMemo(() => {
const selectedIds = Object.keys(state.selectedRowIds ?? {})
return selectedIds.map((id) => preGlobalFilteredRowsById[id])
return selectedIds
.map((id) => preGlobalFilteredRowsById[id])
.filter(Boolean)
}, [state.selectedRowIds])
useMountedLayoutEffect(() => {