Skip to content

Commit

Permalink
Fixes #371
Browse files Browse the repository at this point in the history
  • Loading branch information
Diogo Marques committed Dec 2, 2022
1 parent fca4458 commit 8384969
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ jQuery( () => {
///////////////

const tabbedContent = $(`form .tab-content`);
const topLevel = (tabbedContent.length > 0) ? tabbedContent.first() : $(`.content form`);
const topLevel = (tabbedContent.length > 0) ? tabbedContent.first() : $(`.content > form`);
const languageCodeRegex = new RegExp(' \\[('+wagtailModelTranslations.languages.join('|')+')\\]');

if (topLevel.length === 0) {
Expand Down

0 comments on commit 8384969

Please sign in to comment.