TypeError: cannot read properties of null querySelectorAll("[role='switch]") #23

Closed
opened 2024-10-18 09:25:17 -04:00 by am · 0 comments
Owner

It appears that when there are no switches we are getting a error cant read properties of null querySelectorAll("[role='switch]"). Only running code if there is one (.length > 0) does not seem to resolve the issue, but using a try catch and throwing a warning instead of an error seems to resolve the problem.

We're only seeing this when we view an individual pattern export file, injecting the CSS and JS to try and debug.

It appears that when there are no switches we are getting a error cant read properties of null querySelectorAll("[role='switch]"). Only running code if there is one (.length > 0) does not seem to resolve the issue, but using a try catch and throwing a warning instead of an error seems to resolve the problem. We're only seeing this when we view an individual pattern export file, injecting the CSS and JS to try and debug.
am added the
Kind/Bug
label 2024-10-18 09:25:17 -04:00
am referenced this issue from a commit 2024-10-18 09:28:59 -04:00
am closed this issue 2024-10-18 09:28:59 -04:00
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: gamv/ds2-core#23
No description provided.