From f49add785a93e6c7ae45d41438a0382f28badff8 Mon Sep 17 00:00:00 2001 From: Jeff Bryner Date: Wed, 28 Nov 2018 10:51:12 -0800 Subject: [PATCH] log error only if error --- heatmap/riskheatmap.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/heatmap/riskheatmap.js b/heatmap/riskheatmap.js index 835bc66..4b108d5 100644 --- a/heatmap/riskheatmap.js +++ b/heatmap/riskheatmap.js @@ -47,7 +47,9 @@ function toDegrees(rad) { } d3.json("risks.json", function(error, jsondata) { - console.log(error); + if ( error ){ + console.log(error); + } // three.js initialization var camera, renderer, controls;