Fix node is not active show "undefined" in dashboard

https://github.com/rancher/rancher/issues/18812
This commit is contained in:
n313893254 2019-03-12 12:06:19 +08:00
parent 06cb284ed9
commit 1bed00de30
1 changed files with 2 additions and 2 deletions

View File

@ -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],
});
}
});