Skip to content

Fixed elevation profile crash on windows resize#317

Merged
ltshb merged 1 commit intodevelopfrom
bug-elevation-profile-crash
Dec 1, 2022
Merged

Fixed elevation profile crash on windows resize#317
ltshb merged 1 commit intodevelopfrom
bug-elevation-profile-crash

Conversation

@ltshb
Copy link
Contributor

@ltshb ltshb commented Dec 1, 2022

When resizing the windows or on mobile when switching between portrait
and landscape, the method updateElevationProfilePlot() crashed because it is
executed within a promise and due to timing the refs.profilePlot might be null.

Test link

@ltshb ltshb requested a review from pakb December 1, 2022 05:21
@ltshb ltshb force-pushed the bug-elevation-profile-crash branch from 935ab34 to 8917ccf Compare December 1, 2022 05:21
@github-actions github-actions bot added the bug label Dec 1, 2022
Copy link
Contributor

@pakb pakb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I hope my refactoring hasn't brought up more bugs, at least it's a bit clearer when we need to fix something now 😜

When resizing the windows or on mobile when switching between portrait
and landscape, the method updateElevationProfilePlot() crashed because it is
executed within a promise and due to timing the refs.profilePlot might be null.
@ltshb ltshb force-pushed the bug-elevation-profile-crash branch from 8917ccf to ef4514a Compare December 1, 2022 08:52
@ltshb ltshb merged commit eb1bf05 into develop Dec 1, 2022
@ltshb ltshb deleted the bug-elevation-profile-crash branch December 1, 2022 10:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants