1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-08-29 09:49:28 +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

View File

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