Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Set High Contrast Error #9925

Merged
merged 1 commit into from
Mar 19, 2024
Merged

Conversation

thsparks
Copy link
Contributor

We're seeing intermittent errors in teacher tool where we're trying to call ToString() on undefined. This is happening because, in setEditorRef(), we are calling driver.setHighContrast(highContrast); without initializing the highContrast var to anything. As a result, we were passing in undefined which was breaking things down the line.

We were calling setHighContrast in setEditorRef before setting the highContrast var to anything, so undefined was getting passed in, which then broke down the line.
@thsparks thsparks requested a review from a team March 18, 2024 18:01
@thsparks thsparks merged commit 2e03a51 into master Mar 19, 2024
7 checks passed
@thsparks thsparks deleted the thsparks/teachertool/fix_hc_issue branch March 19, 2024 16:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants