diff --git a/nuxt4-app/app/components/metabase/MetabaseCardDisplay.vue b/nuxt4-app/app/components/metabase/MetabaseCardDisplay.vue index 96c5cec..def91a2 100644 --- a/nuxt4-app/app/components/metabase/MetabaseCardDisplay.vue +++ b/nuxt4-app/app/components/metabase/MetabaseCardDisplay.vue @@ -324,7 +324,7 @@ async function executeQuery() { // Build parameters from current form values for (const [tagName, tagConfig] of Object.entries(templateTags.value)) { const config = tagConfig as any - let paramType = 'text' + let paramType = 'string/=' let paramValue = parameterValues.value[tagName] // Determine parameter type based on tag type @@ -332,12 +332,14 @@ async function executeQuery() { paramType = 'date/single' paramValue = parameterValues.value[tagName] || null } else if (config.type === 'boolean') { - paramType = 'boolean' + paramType = 'boolean/=' paramValue = parameterValues.value[tagName] - } else if (config.type === 'text' && (tagName.toLowerCase().includes('fecha') || config?.['display-name']?.toLowerCase().includes('fecha'))) { - // Si es tipo text pero parece una fecha, enviar como text - paramType = 'text' - paramValue = parameterValues.value[tagName] || '' + } else if (config.type === 'number') { + paramType = 'number/=' + paramValue = parameterValues.value[tagName] || null + } else if (config.type === 'text') { + paramType = 'string/=' + paramValue = parameterValues.value[tagName] || null } parameters.push({