mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-09-22 03:04:03 +00:00
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:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user