up
This commit is contained in:
@@ -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 => {
|
||||
|
||||
Reference in New Issue
Block a user