From fe655135e446963632f07aead8cb9ec5c50160d4 Mon Sep 17 00:00:00 2001 From: bkmartinjr Date: Mon, 14 May 2018 15:57:39 -0700 Subject: [PATCH] fix incorrect inequality check in caching code --- src/components/graph/graph.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/graph/graph.js b/src/components/graph/graph.js index 67aae603..7d8ca50e 100644 --- a/src/components/graph/graph.js +++ b/src/components/graph/graph.js @@ -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])