fix: resolve existingAlert undefined error in alert management modal

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
courtmanr@gmail.com
2025-06-05 15:05:20 +01:00
parent 1c82771b49
commit c6dbd0a449
+2 -2
View File
@@ -1486,10 +1486,10 @@ ${isEditing ? 'Update Alert' : 'Create Alert'}
`;
document.body.insertAdjacentHTML('beforeend', modalHTML);
setupCustomAlertModalEvents();
setupCustomAlertModalEvents(existingAlert);
}
function setupCustomAlertModalEvents() {
function setupCustomAlertModalEvents(existingAlert = null) {
const modal = document.getElementById('custom-alert-modal');
const closeBtn = document.getElementById('custom-alert-modal-close');
const cancelBtn = document.getElementById('custom-alert-cancel-button');