From 274298484c1f72e934cc007ff80c247a8fd33524 Mon Sep 17 00:00:00 2001 From: Colin Megill Date: Mon, 28 Sep 2020 16:11:52 -0700 Subject: [PATCH] add isExpanded state to gene, and pass to histogram --- client/src/components/geneExpression/gene.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/client/src/components/geneExpression/gene.js b/client/src/components/geneExpression/gene.js index 8183914c..12851d6c 100644 --- a/client/src/components/geneExpression/gene.js +++ b/client/src/components/geneExpression/gene.js @@ -33,15 +33,13 @@ class Gene extends React.Component { }; handleGeneExpandClick = () => { - const { geneIsExpanded, haveFetched } = this.state; + const { geneIsExpanded } = this.state; this.setState({ geneIsExpanded: !geneIsExpanded }); - if (!haveFetched) { - // this.fetchGene(); TODO - } }; render() { const { gene } = this.props; + const { geneIsExpanded } = this.state; return (
- + {/* */}