diff --git a/web/pgadmin/dashboard/static/js/Graphs.jsx b/web/pgadmin/dashboard/static/js/Graphs.jsx index e8a7adf7192..79f3d774323 100644 --- a/web/pgadmin/dashboard/static/js/Graphs.jsx +++ b/web/pgadmin/dashboard/static/js/Graphs.jsx @@ -17,7 +17,7 @@ import {useInterval, usePrevious} from 'sources/custom_hooks'; import PropTypes from 'prop-types'; import StreamingChart from '../../../static/js/components/PgChart/StreamingChart'; import { Grid, useTheme } from '@mui/material'; -import { getChartColor } from '../../../static/js/utils'; +import { getChartColor, toPrettySize } from '../../../static/js/utils'; export const X_AXIS_LENGTH = 75; @@ -253,36 +253,35 @@ export function GraphsWrapper(props) { lineBorderWidth: props.lineBorderWidth, theme: props.theme, }), [props.showTooltip, props.showDataPoints, props.lineBorderWidth, props.theme]); - return ( <> - + toPrettySize(v, '')}/> - + toPrettySize(v, '')}/> - + toPrettySize(v, '')}/> - + toPrettySize(v, '')}/> - + toPrettySize(v, '')}/>