Skip to content

Commit f7329aa

Browse files
committed
v5.0.55
1 parent 1cdc58b commit f7329aa

3 files changed

Lines changed: 4 additions & 2 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@netdata/netdata-ui",
3-
"version": "5.0.54",
3+
"version": "5.0.55",
44
"description": "netdata UI kit",
55
"main": "dist/index.js",
66
"module": "dist/es6/index.js",

src/components/table/body/row.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ const rerenderSelector = state => ({
6262
expanded: state.expanded,
6363
columnVisibility: state.columnVisibility,
6464
selectedRows: state.selectedRows,
65+
allColumns: state.allColumns?.length,
6566
})
6667

6768
const StyledRow = styled(Flex)`

src/components/table/table.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,7 @@ const Table = memo(props => {
227227

228228
useLayoutEffect(() => {
229229
const state = table.getState()
230+
230231
dispatchThrottled({
231232
sorting: state.sorting,
232233
columnSizing: state.columnSizing,
@@ -236,7 +237,7 @@ const Table = memo(props => {
236237
columnSizingInfo: state.columnSizingInfo,
237238
rowsById: table.getRowModel().rowsById,
238239
selectedRows: table.getSelectedRowModel().flatRows,
239-
allColumns: table?.getAllColumns?.(),
240+
allColumns: table?.getAllLeafColumns?.(),
240241
})
241242
}, [table.getState()])
242243

0 commit comments

Comments
 (0)