typescript fixes

This commit is contained in:
2025-09-30 14:09:12 -06:00
parent 0fd6e50d7a
commit 54875fca7b

View File

@@ -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