Skip to content

Commit de1837a

Browse files
committed
v5.0.7
1 parent 045db94 commit de1837a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@netdata/netdata-ui",
3-
"version": "5.0.6",
3+
"version": "5.0.7",
44
"description": "netdata UI kit",
55
"main": "dist/index.js",
66
"module": "dist/es6/index.js",

src/components/table/header/actions/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ const useSelectedRowsObserver = (table, { onRowSelected = noop, rowSelection })
1616
useEffect(() => {
1717
const { flatRows } = table.getSelectedRowModel()
1818
if (flatRows) {
19-
const selected = flatRows.reduce((acc, { original }) => {
20-
if (original?.disabled) return acc
19+
const selected = flatRows.reduce((acc, { original, subRows }) => {
20+
if (original?.disabled || !!subRows?.length) return acc
2121

2222
acc.push(original)
2323
return acc

0 commit comments

Comments
 (0)