This commit is contained in:
Lizandro Guarnizo
2026-05-25 14:37:59 -05:00
parent 471b2f50c6
commit 03c6e74bd6
2 changed files with 31 additions and 42 deletions
+2 -2
View File
@@ -197,10 +197,10 @@ function notifConfig() {
toast: { visible: false, ok: true, msg: '' },
async init() {
// Verificar si hay telegram configurado
// Verificar si hay telegram configurado (la API devuelve array directo)
try {
const t = await axios.get('/app/loadtelegram');
this.hasTelegramConfig = (t.data?.items?.length ?? 0) > 0;
this.hasTelegramConfig = Array.isArray(t.data) && t.data.some(b => b.activo);
} catch {}
// Cargar configuración existente