TypeError: cannot read properties of null querySelectorAll("[role='switch]") #23
Labels
No Label
Core
Pattern/Status
Pattern/Tabs
Kind/Breaking
Kind/Bug
Kind/Build process
Kind/Documentation
Kind/Enhancement
Kind/Feature request
Kind/Security
Kind/Testing
Kind/User experience
Priority
0 Critical
Priority
1 High
Priority
2 Medium
Priority
3 Low
Status/Blocked
Status/Duplicate
Status/Need More Info
Status/Won't Fix
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: gamv/ds2-core#23
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.