mirror of https://github.com/rancher/ui.git
Fix node is not active show "undefined" in dashboard
https://github.com/rancher/rancher/issues/18812
This commit is contained in:
parent
06cb284ed9
commit
1bed00de30
|
|
@ -59,11 +59,11 @@ export default Component.extend({
|
|||
const found = ticks.find((tick) => tick.value === Math.round(node.value));
|
||||
|
||||
if (found) {
|
||||
found.labels.push(node.node.nodeName);
|
||||
found.labels.push(node.node.nodeName || node.node.requestedHostname);
|
||||
} else {
|
||||
ticks.push({
|
||||
value: Math.round(node.value),
|
||||
labels: [node.node.nodeName],
|
||||
labels: [node.node.nodeName || node.node.requestedHostname],
|
||||
});
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue