From 06b164ca065a3d3d64f37397f76bb14da598804e Mon Sep 17 00:00:00 2001 From: Mcat12 Date: Sat, 16 Jun 2018 15:36:33 -0400 Subject: [PATCH] Use the destination IP address if the name is not available Signed-off-by: Mcat12 --- src/components/ForwardDestinationsChart.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/ForwardDestinationsChart.js b/src/components/ForwardDestinationsChart.js index fcd54f6..11641c5 100644 --- a/src/components/ForwardDestinationsChart.js +++ b/src/components/ForwardDestinationsChart.js @@ -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