mirror of
https://github.com/henrygd/beszel.git
synced 2025-12-18 03:06:16 +01:00
updates
This commit is contained in:
@@ -124,15 +124,13 @@ const ChartTooltipContent = React.forwardRef<
|
||||
) => {
|
||||
const { config } = useChart()
|
||||
|
||||
payload = React.useMemo(() => {
|
||||
React.useMemo(() => {
|
||||
if (itemSorter) {
|
||||
return payload.sort(itemSorter)
|
||||
// @ts-ignore
|
||||
payload?.sort(itemSorter)
|
||||
}
|
||||
return payload
|
||||
}, [itemSorter, payload])
|
||||
|
||||
// console.log('iiiiii', itemSorter)
|
||||
|
||||
const tooltipLabel = React.useMemo(() => {
|
||||
if (hideLabel || !payload?.length) {
|
||||
return null
|
||||
|
||||
Reference in New Issue
Block a user