From c29303134ad1426b917f8253bb6f5422a42a6411 Mon Sep 17 00:00:00 2001 From: Filip Barl Date: Tue, 8 Aug 2017 14:45:59 +0100 Subject: [PATCH] Fixed the nodes-chart-overlay warnings. --- client/app/scripts/charts/nodes-chart-elements.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/app/scripts/charts/nodes-chart-elements.js b/client/app/scripts/charts/nodes-chart-elements.js index a5d390d31..0c4e62280 100644 --- a/client/app/scripts/charts/nodes-chart-elements.js +++ b/client/app/scripts/charts/nodes-chart-elements.js @@ -193,12 +193,12 @@ class NodesChartElements extends React.Component { // NOTE: This piece of code is a bit hacky - as we can't set the absolute coords for the // SVG element, we set the zoom level high enough that we're sure it covers the screen. const className = classNames('nodes-chart-overlay', { active: element.get('isActive') }); - const scale = this.props.selectedScale * 100000; + const scale = (this.props.selectedScale || 1) * 100000; return ( ); }