mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-10-07 17:28:11 +08:00
fix incorrect inequality check in caching code
This commit is contained in:
@@ -115,7 +115,7 @@ class Graph extends React.Component {
|
|||||||
const sizes = new Float32Array(vertexCount);
|
const sizes = new Float32Array(vertexCount);
|
||||||
|
|
||||||
// Cache a scaled graph
|
// 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);
|
const positions = new Float32Array(2 * vertexCount);
|
||||||
|
|
||||||
// d3.scaleLinear().domain([0,1]).range([-1,1])
|
// d3.scaleLinear().domain([0,1]).range([-1,1])
|
||||||
|
|||||||
Reference in New Issue
Block a user