Use the destination IP address if the name is not available

Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
This commit is contained in:
Mcat12
2018-06-16 15:36:33 -04:00
parent 9dff491bec
commit 06b164ca06
+1 -1
View File
@@ -49,7 +49,7 @@ class ForwardDestinationsChart extends Component {
let i = 0;
for(let destination of forwardDestinations) {
data.push(destination.percent);
labels.push(destination.name);
labels.push(destination.name.length !== 0 ? destination.name : destination.ip);
usedColors.push(
// If we ran out of colors, make a random one
i < colors.length