From 54875fca7b1cecfe106f2b3b8705c409813ef59f Mon Sep 17 00:00:00 2001 From: josedario87 Date: Tue, 30 Sep 2025 14:09:12 -0600 Subject: [PATCH] typescript fixes --- nuxt4-app/app/pages/panorama.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nuxt4-app/app/pages/panorama.vue b/nuxt4-app/app/pages/panorama.vue index 23f5ec1..2fe86ed 100644 --- a/nuxt4-app/app/pages/panorama.vue +++ b/nuxt4-app/app/pages/panorama.vue @@ -314,8 +314,8 @@ function onManualDateChange() { console.log('Manual date change, preset set to custom') } -async function onToggleAnulados(newValue: boolean) { - if (newValue) { +async function onToggleAnulados(newValue: boolean | 'indeterminate') { + if (newValue === true) { // Pedir confirmación al activar const confirmed = confirm( '⚠️ ADVERTENCIA\n\n' + @@ -464,7 +464,7 @@ onMounted(async () => { try { // Cargar metadatos primero if (metadataStore.metadata.length === 0) { - await metadataStore.fetchMetadata() + await (metadataStore as any).loadMetadata() } // Cache primero para UX