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:
parent
ef3d15148b
commit
00b7ac4a3e
@ -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 ?? '--'
|
||||
|
Loading…
x
Reference in New Issue
Block a user