Skip to content

Commit

Permalink
fixed conflict(declared twice)
Browse files Browse the repository at this point in the history
  • Loading branch information
staware30 committed Dec 5, 2024
1 parent b973cf7 commit c09cf3a
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions blocks/gmo-program-details/gmo-program-details.js
Original file line number Diff line number Diff line change
Expand Up @@ -512,21 +512,6 @@ function toggleGroup(group, expand) {
});
};

function toggleGroup(group, expand) {
if (expand) {
group.querySelector('.icon-next').classList.add('inactive');
group.querySelector('.icon-collapse').classList.remove('inactive');
} else {
group.querySelector('.icon-next').classList.remove('inactive');
group.querySelector('.icon-collapse').classList.add('inactive');
}
Array.from(group.children).forEach((child) => {
if (child.classList.contains('row')) {
child.classList.toggle('inactive', !expand);
}
});
};

function enableBackBtn(block, blockConfig) {
block.querySelector('.back-button').addEventListener('click', () => {
const host = location.origin + getBaseConfigPath();
Expand Down

0 comments on commit c09cf3a

Please sign in to comment.