mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-09-27 14:58:11 +08:00
select and deselect
This commit is contained in:
@@ -28,7 +28,7 @@ class Continuous extends React.Component {
|
||||
super(props);
|
||||
this.state = {
|
||||
ctx: null,
|
||||
|
||||
parallelExists: false
|
||||
};
|
||||
}
|
||||
|
||||
@@ -36,9 +36,10 @@ class Continuous extends React.Component {
|
||||
|
||||
}
|
||||
|
||||
componentWillUpdate(nextProps) {
|
||||
if (nextProps.ranges) {
|
||||
componentWillReceiveProps(nextProps) {
|
||||
if (nextProps.ranges && !this.state.parallelExists) {
|
||||
drawParallelCoordinates(nextProps.metadata, nextProps.ranges)
|
||||
this.setState({parallelExists: true})
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user