mirror of
https://github.com/LD-Reborn/Berufsschule_HAM.git
synced 2025-12-20 06:51:55 +00:00
Fixed preset deletion not working bug
This commit is contained in:
@@ -389,7 +389,7 @@
|
||||
|
||||
function addDeletePresetEventListener(button) {
|
||||
button.addEventListener('click', e => {
|
||||
const presetContainer = e.target.closest('.col-md-6');
|
||||
const presetContainer = e.target.parentElement.parentElement.closest('.col-md-6');
|
||||
if (!presetContainer) return;
|
||||
presetContainer.remove();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user