Skip to content

Commit

Permalink
IBX-2029: Fixed error in content type edit validation (#222)
Browse files Browse the repository at this point in the history
  • Loading branch information
dew326 authored Jan 24, 2022
1 parent 8fdb910 commit 3146953
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bundle/Resources/public/js/scripts/admin.content.edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@

if (invalidSection) {
const { anchorSectionId } = invalidSection.dataset;
const invalidButton = doc.querySelector(`[data-anchor-target-section="${anchorSectionId}"`);
const invalidButton = doc.querySelector(`[data-anchor-target-section-id="${anchorSectionId}"`);

invalidButton.click();
}
Expand Down Expand Up @@ -116,7 +116,7 @@

invalidSections.forEach((sections) => {
sections.forEach((invalidSectionId) => {
doc.querySelector(`[data-anchor-target-section='${invalidSectionId}']`).classList.add(
doc.querySelector(`[data-anchor-target-section-id='${invalidSectionId}']`).classList.add(
'ibexa-anchor-navigation-menu__btn--invalid'
);
});
Expand Down

0 comments on commit 3146953

Please sign in to comment.