From a0754c0c9236c53457b4496462fc4cd8054c1068 Mon Sep 17 00:00:00 2001 From: Lizandro Guarnizo <77708265+lizandrogd@users.noreply.github.com> Date: Fri, 15 May 2026 22:27:07 -0500 Subject: [PATCH] up --- resources/views/notif_config.html | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/resources/views/notif_config.html b/resources/views/notif_config.html index b491e65..6fe2795 100644 --- a/resources/views/notif_config.html +++ b/resources/views/notif_config.html @@ -125,9 +125,11 @@ function notifConfig() { } catch {} // Cargar configuración existente - const r = await axios.get('/app/notif-config/data'); - const existing = {}; - (r.data || []).forEach(cfg => { existing[`${cfg.evento}__${cfg.destinatario}`] = cfg; }); + let existing = {}; + try { + const r = await axios.get('/app/notif-config/data'); + (r.data || []).forEach(cfg => { existing[`${cfg.evento}__${cfg.destinatario}`] = cfg; }); + } catch {} // Construir filas combinando EVENTOS con config guardada this.rows = EVENTOS.map(ev => {