Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hovering over bone age tooltip causes chart to crash #90

Merged
merged 1 commit into from
Jul 15, 2024

Conversation

dmc-cambric
Copy link
Contributor

Hi team,

Have found a bug when rendering a height chart. When a bone age measurement is present but has a 'null' value comment, the chart throws the following error:

I've fixed this temporarily in our implementation by sending an empty string value to the 'bone_age_text' param of the API.

File: src\functions\tooltips.ts
Proposed fix: check bone_age_label is not null before checking length property.

The error:
image

Before hovering over bone age:
image

After hovering over bone age:
image

@mbarton
Copy link
Member

mbarton commented Jul 15, 2024

Thanks for the contribution @dmc-cambric! Looks great, will release asap

@mbarton mbarton merged commit 467d180 into rcpch:live Jul 15, 2024
1 check failed
@dmc-cambric dmc-cambric deleted the bone-age-tooltip-label-hover-fix branch July 15, 2024 12:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants