1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-22 18:50:08 +03:00

B #: Error when getting cluster info (#2794)

Signed-off-by: David Carracedo <dcarracedo@opennebula.io>
This commit is contained in:
David 2023-10-27 12:12:44 +02:00 committed by GitHub
parent ef3d15148b
commit 00b7ac4a3e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -77,7 +77,7 @@ const InformationPanel = ({ vm = {}, actions }) => {
} = getLastHistory(vm)
useEffect(() => {
getCluster({ id: clusterId })
if (clusterId) getCluster({ id: clusterId })
}, [clusterId])
const clusterName = +clusterId === -1 ? 'default' : cluster?.NAME ?? '--'