diff --git a/package.json b/package.json index e715dc77..5363a541 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@netdata/charts", - "version": "5.0.5", + "version": "5.0.6", "description": "Netdata frontend SDK and chart utilities", "main": "dist/index.js", "module": "dist/es6/index.js", diff --git a/src/components/easyPie/index.js b/src/components/easyPie/index.js index 0026a93b..1b132f12 100644 --- a/src/components/easyPie/index.js +++ b/src/components/easyPie/index.js @@ -7,6 +7,7 @@ import { useAttributeValue, useLatestConvertedValue, useOnResize, + useDimensionIds, } from "@/components/provider" import withChart from "@/components/hocs/withChart" import { ChartWrapper } from "@/components/hocs/withTile" @@ -29,7 +30,8 @@ export const Value = () => { } export const Unit = () => { - const unit = useUnitSign() + const [firstDimId] = useDimensionIds() + const unit = useUnitSign({ dimensionId: firstDimId }) return (