diff --git a/client/src/components/brushableHistogram/index.js b/client/src/components/brushableHistogram/index.js index d7e88ea4..b38e8705 100644 --- a/client/src/components/brushableHistogram/index.js +++ b/client/src/components/brushableHistogram/index.js @@ -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 { }} >
- {isDiffExp ? ( + {isDiffExp || isUserDefined ? (