diff --git a/client/src/components/graph/graph.js b/client/src/components/graph/graph.js index 95917c6a..4d6778ba 100644 --- a/client/src/components/graph/graph.js +++ b/client/src/components/graph/graph.js @@ -211,9 +211,12 @@ class Graph extends React.Component { } if ( - /* invisibly handles the initial null vs integer case as well as resize events */ prevProps.responsive.height !== this.props.responsive.height || - prevProps.responsive.width !== this.props.responsive.width + prevProps.responsive.width !== this.props.responsive.width || + /* first time */ + (this.props.responsive.height && + this.props.responsive.width && + !this.state.svg) ) { /* clear out whatever was on the div, even if nothing, but usually the brushes etc */ d3.select("#graphAttachPoint")