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

Prevent error when creating entry while using multisite #7143

Merged
merged 1 commit into from
Nov 29, 2022

Conversation

jasonvarga
Copy link
Member

Fixes #7141

Use a nullsafe operator since the error is because the this.localizations.find() returns null in both cases.

The this.selectedOrigin property is only used on the edit form, so we don't care if it's null on the create form.

@what-the-diff
Copy link

what-the-diff bot commented Nov 29, 2022

  • Added ? to the end of two lines in PublishForm.vue

@jasonvarga jasonvarga merged commit 031e06e into 3.3 Nov 29, 2022
@jasonvarga jasonvarga deleted the fix/create-entry-multisite-js-error branch November 29, 2022 17:17
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.

Frontend TypeError: this.localizations.find(...) is undefined
1 participant