fix incorrect inequality check in caching code

This commit is contained in:
bkmartinjr
2018-05-14 15:57:39 -07:00
parent 156fb5c100
commit fe655135e4
+1 -1
View File
@@ -115,7 +115,7 @@ class Graph extends React.Component {
const sizes = new Float32Array(vertexCount);
// Cache a scaled graph
if (!this.scaledGraphVec || this.props.graphVec != nextProps.graphVec) {
if (!this.scaledGraphVec || this.props.graphVec !== nextProps.graphVec) {
const positions = new Float32Array(2 * vertexCount);
// d3.scaleLinear().domain([0,1]).range([-1,1])