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

Fix for 'region' parameter undefined in '_onRegionChangeComplete' #174

Merged
merged 1 commit into from
Jan 3, 2021

Conversation

spielmannr
Copy link

I ran into this issue when I'm updating a marker and its opacity.
The onRegionChangeComplete seems to trigger with the region parameter being undefined, triggering an undefined is not an object error and crashing the app.

I've added a condition verifying if region isn't undefined, and if it is the onRegionChangeComplete prop triggers, it fixed my issue and I could still use the onRegionChangeComplete callback.

Fix for 'region' undefined in '_onRegionChangeComplete'
@venits venits merged commit 420a8df into venits:master Jan 3, 2021
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.

None yet

3 participants