Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix binding I have to keep this in or it raises an error `Cannot read properties of undefined (reading 'width')`. My guess is there is a race condition such that when the scene is loaded the dom attribute is added but the a-frame component hasn't been initialized thus the segment is returned as matching the querySelector but not from a-frame getattribute? I changed the logic a bit to check if the street-segment component exist and to also return if no width for a segment: ``` const segmentWidth = segmentEl.getAttribute('street-segment')?.width; if (!segmentWidth) return; ```
- Loading branch information