diff --git a/client/app/scripts/charts/nodes-chart.js b/client/app/scripts/charts/nodes-chart.js index 318b29fbe..9db84f0cb 100644 --- a/client/app/scripts/charts/nodes-chart.js +++ b/client/app/scripts/charts/nodes-chart.js @@ -33,7 +33,8 @@ const NodesChart = React.createClass({ translate: [0, 0], panTranslate: [0, 0], scale: 1, - hasZoomed: false + hasZoomed: false, + maxNodesExceeded: false }; }, @@ -161,6 +162,14 @@ const NodesChart = React.createClass({ wasShifted = true; } + if (this.state.maxNodesExceeded) { + return ( +
+ +
+ ); + } + return ( @@ -376,7 +385,7 @@ const NodesChart = React.createClass({ // layout was aborted if (!graph) { - return {}; + return {maxNodesExceeded: true}; } // save coordinates for restore