This commit is contained in:
Lizandro Guarnizo
2026-05-15 22:27:07 -05:00
parent 084f6e3930
commit a0754c0c92
+3 -1
View File
@@ -125,9 +125,11 @@ function notifConfig() {
} catch {} } catch {}
// Cargar configuración existente // Cargar configuración existente
let existing = {};
try {
const r = await axios.get('/app/notif-config/data'); const r = await axios.get('/app/notif-config/data');
const existing = {};
(r.data || []).forEach(cfg => { existing[`${cfg.evento}__${cfg.destinatario}`] = cfg; }); (r.data || []).forEach(cfg => { existing[`${cfg.evento}__${cfg.destinatario}`] = cfg; });
} catch {}
// Construir filas combinando EVENTOS con config guardada // Construir filas combinando EVENTOS con config guardada
this.rows = EVENTOS.map(ev => { this.rows = EVENTOS.map(ev => {