fix: explicit typing for catch error to satisfy Next.js build

This commit is contained in:
Carlos (Almeira) 2026-07-18 10:15:10 -05:00
parent af4554e4fc
commit be199fc0cd

View File

@ -35,7 +35,7 @@ export async function getEntityConfig() {
const bucketId = mediaDoc.bucket_id || 'media';
doc.logotipo = `${ENDPOINT}/storage/buckets/${bucketId}/files/${mediaDoc.file_id}/view?project=${PROJECT_ID}`;
}
} catch (mediaErr) {
} catch (mediaErr: any) {
// Si falla (por ejemplo, si realmente era un file_id antiguo), no hacemos nada y dejamos que el frontend intente usarlo como file_id
console.warn("Could not resolve media doc for logotipo, keeping original value:", mediaErr.message);
}