Skip to content

sources can be null#14952

Merged
brandonkelly merged 3 commits into5.xfrom
bugfix/14923-modal-switching-sites-sources-check
May 7, 2024
Merged

sources can be null#14952
brandonkelly merged 3 commits into5.xfrom
bugfix/14923-modal-switching-sites-sources-check

Conversation

@i-just
Copy link
Copy Markdown
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