Fix doors again

This commit is contained in:
Christopher Cookman 2025-09-01 00:16:05 -06:00
parent e223366183
commit 1b236108eb

View file

@ -51,7 +51,7 @@ document.getElementById('acl-edit-form').addEventListener('submit', function(e)
EndDate: formData.get('EndDate'),
doors: {}
};
<% doorsList.forEach(function(door) { %>
<% Object.keys(doorsList).forEach(function(door) { %>
data.doors['<%= door %>'] = formData.get('doors[<%= door %>]') ? 1 : 0;
<% }) %>
fetch(form.action, {