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:
parent
cf535c49fc
commit
649f6049eb
@ -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(() => {
|
||||
|
Loading…
Reference in New Issue
Block a user