Remove duplicated event listener on new plans page group plan modal (#8085)

GitOrigin-RevId: 7445c3b93bc54285f5ade6ce8b32b13be9281dc5
This commit is contained in:
M Fahru 2022-05-24 09:50:40 -04:00 committed by Copybot
parent 43a069edca
commit 03e875ffa3

View file

@ -17,15 +17,6 @@ function showGroupPlanModal(el) {
changeGroupPlanModalRadioInputData(plan)
const modalEl = $('[data-ol-group-plan-modal]')
modalEl
.on('shown.bs.modal', function () {
const path = `${window.location.pathname}${window.location.search}`
history.replaceState(null, document.title, path + '#groups')
})
.on('hidden.bs.modal', function () {
history.replaceState(null, document.title, window.location.pathname)
})
modalEl.modal()
}