Skip to content

[bugfix] Fix React UI crash selecting a-scene in scene graph #744

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

Merged
merged 1 commit into from
Aug 12, 2024

Conversation

vincentfretin
Copy link
Contributor

Check for undefined via the optional chaining ?. operator before accessing the property now that getDOMAttribute may return undefined in aframe 1.6.0 instead of {} we always had previously.

This fixes #741

…ibute may return undefined in aframe 1.6.0 instead of {} we always had previously (fix aframevr#741)
@dmarcos
Copy link
Member

dmarcos commented Aug 12, 2024

Thank you

@dmarcos dmarcos merged commit 31f744f into aframevr:master Aug 12, 2024
1 check passed
@vincentfretin vincentfretin deleted the fix-camera-issue branch August 13, 2024 07:24
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.

Selecting a-scene crashes the React UI on aframe 1.6.0 and master
2 participants