[BUGFIX] fill sidebar event triggered twice

This commit is contained in:
Marie Birner 2023-04-08 08:15:03 +02:00
parent 276e2fae88
commit b926605ab6

View File

@ -105,7 +105,7 @@ function initSidebar() {
triggerElement.addEventListener('click', (e) => {
e.preventDefault();
if(triggerElement.dataset.trigger === 'addTrip') {
if(triggerElement.dataset.trigger === 'addTrip' && !sidebar.isOpen) {
initTripSidebar(triggerElement);
}