From 950edf3b6faa11b968015310e834ab258f125e23 Mon Sep 17 00:00:00 2001 From: jpellizzari Date: Thu, 23 Mar 2017 11:18:34 -0700 Subject: [PATCH] Added default values for edge waypoints --- client/app/scripts/charts/edge-container.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/app/scripts/charts/edge-container.js b/client/app/scripts/charts/edge-container.js index 8253ec536..735afab79 100644 --- a/client/app/scripts/charts/edge-container.js +++ b/client/app/scripts/charts/edge-container.js @@ -27,7 +27,7 @@ const transformedEdge = (props, path) => ( // that is used by Motion to an array of waypoints in the format // [{x: 11, y: 22}, {x: 33, y: 44}] that can be used by D3. const waypointsMapToArray = (waypointsMap) => { - const waypointsArray = times(WAYPOINTS_COUNT, () => ({})); + const waypointsArray = times(WAYPOINTS_COUNT, () => ({ x: 0, y: 0})); each(waypointsMap, (value, key) => { const [axis, index] = [key[0], key.slice(1)]; waypointsArray[index][axis] = value;