Skip to content

Commit

Permalink
clean up filename and data
Browse files Browse the repository at this point in the history
  • Loading branch information
Dert1129 committed Dec 8, 2023
1 parent 75f502a commit 929075e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/DataViz/RegionalProteomics.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ class RegionalProteomics extends Component {

getExportFilename = () => {
const tissueType = formatTissueType(this.props.tissueType).toLowerCase().replace(" ", "-");
return "KPMP_Regional_proteomics_" + formatDataType(this.props.dataType) + '_gene-comparison_' + this.props.gene.symbol + '_' + this.state.selectedAccession + '_' + tissueType + '.csv';
return "KPMP_Regional_proteomics_gene-comparison_" + this.props.gene.symbol + '_' + this.state.selectedAccession + '_' + tissueType + '.csv';
};

cleanResults = (results) => {
Expand All @@ -106,7 +106,7 @@ class RegionalProteomics extends Component {
let table = <RegionalProteomicsTable data={this.state.tableData}/>
let tabs = this.getTabGroup(this.state.accessionNums);
let cleanDownloadData = [];
let downloadData = this.state.allData;
let downloadData = this.state.tableData;
if (downloadData && downloadData.length > 0) {
cleanDownloadData = this.cleanResults(downloadData);
}
Expand Down

0 comments on commit 929075e

Please sign in to comment.