File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " @netdata/netdata-ui" ,
3- "version" : " 2.5.2 " ,
3+ "version" : " 2.5.3 " ,
44 "description" : " netdata UI kit" ,
55 "main" : " ./lib/index.js" ,
66 "files" : [
Original file line number Diff line number Diff line change @@ -25,6 +25,8 @@ import MainTable from "./features/mainTable"
2525
2626import { SharedTableProvider } from "./context/sharedTable"
2727
28+ const noop = ( ) => { }
29+
2830const NetdataTable = ( {
2931 dataColumns,
3032 data,
@@ -38,6 +40,7 @@ const NetdataTable = ({
3840 bulkActions = { } ,
3941 onClickRow,
4042 onHoverRow,
43+ onSortingChange = noop ,
4144 disableClickRow,
4245 enablePagination,
4346 paginationOptions = {
@@ -161,7 +164,10 @@ const NetdataTable = ({
161164 getFilteredRowModel : getFilteredRowModel ( ) ,
162165 onRowSelectionChange : setRowSelection ,
163166 onGlobalFilterChange : handleGlobalSearch ,
164- onSortingChange : setSorting ,
167+ onSortingChange : getSorting => {
168+ onSortingChange ( getSorting )
169+ setSorting ( getSorting )
170+ } ,
165171 getSortedRowModel : getSortedRowModel ( ) ,
166172 getPaginationRowModel : getPaginationRowModel ( ) ,
167173 onPaginationChange : setPagination ,
You can’t perform that action at this time.
0 commit comments