From 84b1411a94484d9c695393958320cdcadf6ab8e2 Mon Sep 17 00:00:00 2001 From: Zach Wright Date: Wed, 6 Dec 2023 15:15:36 -0500 Subject: [PATCH] KPMP-4435: simplify --- src/components/DataViz/RegionalProteomics.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/components/DataViz/RegionalProteomics.js b/src/components/DataViz/RegionalProteomics.js index 3b51a3e1..5368f583 100644 --- a/src/components/DataViz/RegionalProteomics.js +++ b/src/components/DataViz/RegionalProteomics.js @@ -58,8 +58,7 @@ class RegionalProteomics extends Component { } this.setState({ allData: allData }); this.setState({ accessionNums: accessionNums }) - let plotData = allData[this.state.selectedAccession]; - this.setState({ plotData: plotData}) + this.setState({ plotData: allData[this.state.selectedAccession]}) this.setState({ tableData: plotData[this.props.tissueType]}) } @@ -80,10 +79,6 @@ class RegionalProteomics extends Component { } render() { - // let accessionPlotData = {}; - // if (this.state.plotData && Object.keys(this.state.plotData).length > 0) { - // accessionPlotData = this.state.plotData; - // } let plot = let table = let tabs = this.getTabGroup(this.state.accessionNums);