TypeError: cannot read properties of null querySelectorAll("[role='switch]") #23
Loading…
x
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.