Skip to content

Commit

Permalink
KPMP-4435: simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
zwright committed Dec 6, 2023
1 parent 312d734 commit 84b1411
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/components/DataViz/RegionalProteomics.js
Original file line number Diff line number Diff line change
Expand Up @@ -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]})
}

Expand All @@ -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 = <LMDDotPlot data={this.state.plotData} />
let table = <RegionalProteomicsTable data={this.state.tableData}/>
let tabs = this.getTabGroup(this.state.accessionNums);
Expand Down

0 comments on commit 84b1411

Please sign in to comment.