1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-01-18 06:03:39 +03:00

B OpenNebula/one#6788: Fix host graph API call (#3324)

Signed-off-by: Victor Hansson <vhansson@opennebula.io>
This commit is contained in:
vichansson 2024-12-11 11:02:19 +02:00 committed by GitHub
parent 0f8566764b
commit 7161126775
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -32,7 +32,7 @@ import { Tr } from 'client/components/HOC'
const HostGraphTab = ({ id }) => {
const {
data: { MONITORING_DATA: { MONITORING: monitoring = [] } = {} } = {},
} = useGetHostMonitoringQuery(id) || {}
} = useGetHostMonitoringQuery({ id: id }) || {}
const cpuMemoryData = (
Array.isArray(monitoring) ? monitoring : [monitoring]