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

View File

@@ -161,7 +161,13 @@ class HistogramBrush extends React.Component {
}
removeHistogram() {
const { dispatch, field, colorAccessor } = this.props;
const {
dispatch,
field,
colorAccessor,
scatterplotXXaccessor,
scatterplotYYaccessor
} = this.props;
dispatch({
type: "clear user defined gene",
data: field
@@ -171,6 +177,18 @@ class HistogramBrush extends React.Component {
type: "reset colorscale"
});
}
if (field === scatterplotXXaccessor) {
dispatch({
type: "set scatterplot x",
data: null
});
}
if (field === scatterplotYYaccessor) {
dispatch({
type: "set scatterplot y",
data: null
});
}
}
handleSetGeneAsScatterplotX() {
@@ -267,7 +285,7 @@ class HistogramBrush extends React.Component {
}}
>
<div style={{ display: "flex", justifyContent: "flex-end" }}>
{isDiffExp ? (
{isDiffExp || isUserDefined ? (
<span>
<span
style={{ marginRight: 7 }}