Skip to content

Commit

Permalink
Merge pull request #2939 from kalletlak/fix-6930
Browse files Browse the repository at this point in the history
Study view: Fix scatter plot reset selected filter

Former-commit-id: 0873b404995c9f1f84d3df3119b56a5c063b062d
  • Loading branch information
zhx828 authored Dec 18, 2019
2 parents ae3e3d6 + 307d2c0 commit b510cc3
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions src/pages/studyView/tabs/SummaryTab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,6 @@ export class StudySummaryTab extends React.Component<IStudySummaryTabProps, {}>
onChangeChartType: (chartMeta: ChartMeta, newChartType: ChartType) => {
this.store.changeChartType(chartMeta, newChartType);
},
updateMutationCountVsCNAFilter:(bounds:RectangleBounds)=>{
this.store.setMutationCountVsCNAFilter(bounds);
},
isNewlyAdded:(uniqueKey: string) => {
return this.store.isNewlyAdded(uniqueKey);
},
Expand Down Expand Up @@ -199,12 +196,8 @@ export class StudySummaryTab extends React.Component<IStudySummaryTabProps, {}>
props.filters = [this.store.getMutationCountVsCNAFilter()];
}
props.promise = this.store.mutationCountVsCNADensityData;
props.onValueSelection = (bounds:RectangleBounds)=>{
this.handlers.updateMutationCountVsCNAFilter(bounds);
}
props.onResetSelection = ()=>{
this.handlers.resetMutationCountVsCNAFilter();
}
props.onValueSelection = this.props.store.setMutationCountVsCNAFilter;
props.onResetSelection = this.props.store.resetMutationCountVsCNAFilter;
props.sampleToAnalysisGroup = this.store.sampleToAnalysisGroup;
props.getData = () => this.store.getScatterDownloadData();
props.downloadTypes = ["Data", "SVG", "PDF"];
Expand Down

0 comments on commit b510cc3

Please sign in to comment.