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

Add Check for ´err´ #9716

Merged
merged 1 commit into from
Feb 8, 2021

Conversation

nielslyngsoe
Copy link
Member

After this fix(#9690) I sometimes get JS error for err being undefined.

This PR add a check for that.

To reproduce: make a DocType with Mandatory Media Picker, try to save without a media picked.

Copy link
Contributor

@nathanwoulfe nathanwoulfe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nielslyngsoe makes sense. Would be good to start using optional chaining for these cases (it's supported in all evergreen browsers, and can be polyfilled for older browsers if needed).

@nathanwoulfe nathanwoulfe added release/8.12.0 release/no-notes This is too small to add to the release notes or fixed after a beta/RC labels Feb 8, 2021
@nathanwoulfe nathanwoulfe merged commit 2d4984d into v8/contrib Feb 8, 2021
@nathanwoulfe nathanwoulfe deleted the v8/bugfix/9690-err-is-not-always-present branch February 8, 2021 00:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community/review release/no-notes This is too small to add to the release notes or fixed after a beta/RC release/8.12.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants