From 8a3b8d5423e67f49fa1cd598aec0582bc3b53d44 Mon Sep 17 00:00:00 2001 From: Charles Haynes Date: Fri, 25 Oct 2024 16:29:11 -0400 Subject: [PATCH] :bug: Update Mutations Lollipop Tool Tip Info to await on promise before attempting to grab patient counts --- src/pages/resultsView/mutation/Mutations.tsx | 24 ++++++++++++-------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/src/pages/resultsView/mutation/Mutations.tsx b/src/pages/resultsView/mutation/Mutations.tsx index 9c098d005ff..24866e63a36 100644 --- a/src/pages/resultsView/mutation/Mutations.tsx +++ b/src/pages/resultsView/mutation/Mutations.tsx @@ -334,14 +334,20 @@ export default class Mutations extends React.Component< count: number, mutations: Mutation[], axisMode: AxisScale - ): JSX.Element { - return ( - - ); + ) { + if (this.props.store.filteredPatients.isComplete) { + return ( + + ); + } else { + return <>; + } } }