diff --git a/Client/src/Components/Charts/Utils/chartUtils.jsx b/Client/src/Components/Charts/Utils/chartUtils.jsx index 0d87421b8..ad673e472 100644 --- a/Client/src/Components/Charts/Utils/chartUtils.jsx +++ b/Client/src/Components/Charts/Utils/chartUtils.jsx @@ -162,7 +162,11 @@ export const InfrastructureTooltip = ({ InfrastructureTooltip.propTypes = { active: PropTypes.bool, payload: PropTypes.array, - label: PropTypes.string, + label: PropTypes.oneOfType([ + PropTypes.instanceOf(Date), + PropTypes.string, + PropTypes.number, + ]), yKey: PropTypes.string, yIdx: PropTypes.number, yLabel: PropTypes.string, diff --git a/Client/src/Pages/Infrastructure/details/index.jsx b/Client/src/Pages/Infrastructure/details/index.jsx index 783db2040..2922a20e9 100644 --- a/Client/src/Pages/Infrastructure/details/index.jsx +++ b/Client/src/Pages/Infrastructure/details/index.jsx @@ -186,7 +186,7 @@ const InfrastructureDetails = () => { yKey="memory.usage_percent" customTooltip={({ active, payload, label }) => ( { yKey="cpu.usage_percent" customTooltip={({ active, payload, label }) => ( { gradientEndColor="#ffffff" /> {latestCheck.disk.map((disk, idx) => { + // disk is an array of disks, so we need to map over it return ( (