Skip to content

Commit

Permalink
fix missing compare button for treatment tables
Browse files Browse the repository at this point in the history
  • Loading branch information
Bryan Lai committed Jan 28, 2025
1 parent 3ff4904 commit 4931a0c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/pages/studyView/StudyViewPageStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1524,10 +1524,10 @@ export class StudyViewPageStore
promises,
async (
selectedSampleSet: ComplexKeyMap<Sample>,
sampleTreatments: SampleTreatmentRow[]
sampleTreatments: SampleTreatmentReport
) => {
const treatmentKeysMap = _.keyBy(treatmentUniqueKeys);
const desiredTreatments = sampleTreatments.filter(
const desiredTreatments = sampleTreatments.treatments.filter(
t =>
treatmentUniqueKey(t, isPatientType) in
treatmentKeysMap
Expand Down
4 changes: 3 additions & 1 deletion src/pages/studyView/charts/ChartContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,9 @@ export class ChartContainer extends React.Component<IChartContainerProps, {}> {
get comparisonPagePossible(): boolean {
return (
this.props.promise.isComplete &&
this.props.promise.result!.length > 1 &&
(this.props.promise.result.treatments ??
this.props.promise.result.patientTreatments ??
this.props.promise.result)!.length > 1 &&
COMPARISON_CHART_TYPES.indexOf(this.props.chartType) > -1 &&
!this.props.chartMeta.mutationOptionType
);
Expand Down

0 comments on commit 4931a0c

Please sign in to comment.