Skip to content

Commit

Permalink
Merge pull request #5033 from cBioPortal/Fix-Mutation-Tab-Bug
Browse files Browse the repository at this point in the history
Fix Mutations Lollipop Tool Tip Info to await promise before retrieving patient counts
  • Loading branch information
inodb authored Oct 28, 2024
2 parents 8511d3b + 8a3b8d5 commit 8d6511c
Showing 1 changed file with 15 additions and 9 deletions.
24 changes: 15 additions & 9 deletions src/pages/resultsView/mutation/Mutations.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -334,14 +334,20 @@ export default class Mutations extends React.Component<
count: number,
mutations: Mutation[],
axisMode: AxisScale
): JSX.Element {
return (
<LollipopTooltipCountInfo
count={count}
mutations={mutations}
axisMode={axisMode}
patientCount={this.props.store.filteredPatients.result!.length}
/>
);
) {
if (this.props.store.filteredPatients.isComplete) {
return (
<LollipopTooltipCountInfo
count={count}
mutations={mutations}
axisMode={axisMode}
patientCount={
this.props.store.filteredPatients.result.length
}
/>
);
} else {
return <></>;
}
}
}

0 comments on commit 8d6511c

Please sign in to comment.