mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-09-23 02:58:11 +08:00
color by gene expression
This commit is contained in:
@@ -17,12 +17,15 @@ class Graph extends React.Component {
|
||||
componentWillReceiveProps(nextProps) {
|
||||
/* maybe should do a check here to confirm ref exists and pass it? */
|
||||
if (
|
||||
nextProps.data &&
|
||||
nextProps.vertices &&
|
||||
nextProps.expressions &&
|
||||
nextProps.expressionsCountsMap &&
|
||||
this.state.context
|
||||
) {
|
||||
drawGraph(
|
||||
nextProps.data.data,
|
||||
this.state.context
|
||||
nextProps.vertices.data,
|
||||
this.state.context,
|
||||
nextProps.expressionsCountsMap
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user