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

sources can be null #14952

Merged
merged 3 commits into from
May 7, 2024
Merged

Conversation

i-just
Copy link
Contributor

@i-just i-just commented May 7, 2024

Description

This is a follow-up to PR #14951.
When switching sites in the elements modal, if the site we’re switching to doesn’t have any sources, TypeError: this.$source is null is thrown in the console. This PR prevents that error from being thrown.

Related issues

#14923

@i-just i-just requested a review from brandonkelly May 7, 2024 10:37
# Conflicts:
#	src/web/assets/cp/dist/cp.js
#	src/web/assets/cp/dist/cp.js.map
[ci skip]
@brandonkelly brandonkelly merged commit 59301f4 into 5.x May 7, 2024
@brandonkelly brandonkelly deleted the bugfix/14923-modal-switching-sites-sources-check branch May 7, 2024 12:18
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.

2 participants