Skip to content

Commit

Permalink
v5.1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
novykh committed Jun 12, 2024
1 parent 86bfc12 commit d51541a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@netdata/charts",
"version": "5.1.3",
"version": "5.1.4",
"description": "Netdata frontend SDK and chart utilities",
"main": "dist/index.js",
"module": "dist/es6/index.js",
Expand Down
5 changes: 4 additions & 1 deletion src/components/table/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import difference from "lodash/difference"
import { Table } from "@netdata/netdata-ui"
import useHover from "@/components/useHover"
import ChartContainer from "@/components/chartContainer"
import useDebouncedValue from "@netdata/netdata-ui/dist/hooks/useDebouncedValue"
import { useChart, useDimensionIds, useAttributeValue } from "@/components/provider"
import withChart from "@/components/hocs/withChart"
import { ChartWrapper } from "@/components/hocs/withTile"
Expand Down Expand Up @@ -168,13 +169,15 @@ const Dimensions = () => {
}, [])
}, [searchQuery, rowGroups, hover])

const debouncedData = useDebouncedValue(data, 300)

return (
<Table
ref={hoverRef}
enableSorting
enableColumnVisibility
dataColumns={columns}
data={data}
data={debouncedData || data}
enableCustomSearch
// onRowSelected={onItemClick}
// onSearch={noop}
Expand Down

0 comments on commit d51541a

Please sign in to comment.