Closed InnerGI closed 2 years ago
When looping over this.buttonContext within clearContext and setIcon methods, there are empty array entries. To avoid the loop being aborted early, we add an optional chain before trying to access '.device' from an empty array entry.
Example Errors before this fix:
When looping over this.buttonContext within clearContext and setIcon methods, there are empty array entries. To avoid the loop being aborted early, we add an optional chain before trying to access '.device' from an empty array entry.
Example Errors before this fix: