user defined gene sets scatterplot, remove works (#556)

This commit is contained in:
Colin Megill
2019-01-16 03:37:08 -05:00
committed by GitHub
parent a42c9aca1c
commit 3fa888c6d4
@@ -161,7 +161,13 @@ class HistogramBrush extends React.Component {
} }
removeHistogram() { removeHistogram() {
const { dispatch, field, colorAccessor } = this.props; const {
dispatch,
field,
colorAccessor,
scatterplotXXaccessor,
scatterplotYYaccessor
} = this.props;
dispatch({ dispatch({
type: "clear user defined gene", type: "clear user defined gene",
data: field data: field
@@ -171,6 +177,18 @@ class HistogramBrush extends React.Component {
type: "reset colorscale" type: "reset colorscale"
}); });
} }
if (field === scatterplotXXaccessor) {
dispatch({
type: "set scatterplot x",
data: null
});
}
if (field === scatterplotYYaccessor) {
dispatch({
type: "set scatterplot y",
data: null
});
}
} }
handleSetGeneAsScatterplotX() { handleSetGeneAsScatterplotX() {
@@ -267,7 +285,7 @@ class HistogramBrush extends React.Component {
}} }}
> >
<div style={{ display: "flex", justifyContent: "flex-end" }}> <div style={{ display: "flex", justifyContent: "flex-end" }}>
{isDiffExp ? ( {isDiffExp || isUserDefined ? (
<span> <span>
<span <span
style={{ marginRight: 7 }} style={{ marginRight: 7 }}