Skip to content

Commit

Permalink
🐛 Update Mutations Lollipop Tool Tip Info to await on promise before …
Browse files Browse the repository at this point in the history
…attempting to grab patient counts
  • Loading branch information
haynescd committed Oct 25, 2024
1 parent 8511d3b commit df95ea7
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions src/pages/resultsView/mutation/Mutations.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -336,12 +336,19 @@ export default class Mutations extends React.Component<
axisMode: AxisScale
): JSX.Element {
return (
<LollipopTooltipCountInfo
count={count}
mutations={mutations}
axisMode={axisMode}
patientCount={this.props.store.filteredPatients.result!.length}
/>
<>
{this.props.store.filteredPatients.isComplete && (
<LollipopTooltipCountInfo
count={count}
mutations={mutations}
axisMode={axisMode}
patientCount={
this.props.store.filteredPatients.result.length
}
/>
)}
;
</>
);
}
}

0 comments on commit df95ea7

Please sign in to comment.