Skip to content

Commit

Permalink
NA - Add safe guard
Browse files Browse the repository at this point in the history
  • Loading branch information
alexiscoelho committed Mar 21, 2024
1 parent 6762b8e commit a7b1a5b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/aem.js
Original file line number Diff line number Diff line change
Expand Up @@ -746,7 +746,9 @@ function decorateGroups() {
if (isConfigurationResultPage) {
const lastGroup = groupContainer.querySelector('div :nth-last-child(1 of .block)');

lastGroup.classList.add('last');
if (lastGroup) {
lastGroup.classList.add('last');
}
}

parentElement.appendChild(groupContainer);
Expand Down

0 comments on commit a7b1a5b

Please sign in to comment.