The dropdown list does not work when I use the same query to parameterize it differently

  • Browser: Chrome Versión 124.0.6367.78
  • Operating system: Linux Mint 21.2
  • Database: PostgreSQL
  • Version Metabase: 0.49.7
  • Metabase hosting environment: Docker

Steps to reproduce the error

  1. Create two tabs
  2. Add the same query to both tabs
  3. Add a common filter, in this case, (fecha_contratacion and nombre) without default values
  4. Add a filter for another field (nombre_empresa), add some default values, and assign this filter ONLY to the query in the FIRST tab
  5. Add a filter for another field (nombre_empresa), add some default values different from the previous ones, and assign this filter ONLY to the query in the SECOND tab
  6. Publish the query

You will notice the difference that when using different default values, even though pointing to two different widgets with the same query and the same filter, the dropdown list for the field (nombre) will stop working.

CREATE TABLE empleados (
    id SERIAL PRIMARY KEY,
    nombre VARCHAR(100) NOT NULL,
    cargo VARCHAR(100) NOT NULL,
    area_de_trabajo VARCHAR(100) NOT NULL,
    fecha_de_contratacion DATE NOT null,
    nombre_empresa VARCHAR(100) NOT NULL
);

INSERT INTO empleados (nombre, cargo, area_de_trabajo, fecha_de_contratacion, nombre_empresa) VALUES
('Juan Pérez', 'Desarrollador', 'IT', '2020-01-15', 'Tech Solutions'),
('María Gómez', 'Analista', 'Finanzas', '2019-03-22', 'Finance Corp'),
('Luis Fernández', 'Gerente', 'Recursos Humanos', '2018-07-10', 'HR Innovators'),
('Ana Rodríguez', 'Diseñadora', 'Marketing', '2021-05-30', 'Creative Minds'),
('Carlos Martínez', 'Soporte Técnico', 'IT', '2020-11-05', 'Tech Solutions'),
('Lucía Díaz', 'Consultora', 'Consultoría', '2019-09-14', 'Consulting Experts'),
('Miguel Torres', 'Administrador', 'Administración', '2018-12-01', 'Admin Services'),
('Laura Jiménez', 'Coordinadora', 'Operaciones', '2021-02-25', 'Operations Co.'),
('Javier López', 'Ingeniero', 'Producción', '2019-06-19', 'Production Inc.'),
('Sofía Sánchez', 'Especialista', 'Calidad', '2020-10-07', 'Quality Assured'),
('Pedro Ramírez', 'Desarrollador', 'IT', '2021-01-10', 'Tech Solutions'),
('Ana Martínez', 'Analista', 'Finanzas', '2018-04-15', 'Finance Corp'),
('Mario Gutiérrez', 'Gerente', 'Recursos Humanos', '2019-11-23', 'HR Innovators'),
('Elena Morales', 'Diseñadora', 'Marketing', '2020-06-28', 'Creative Minds'),
('Rosa Blanco', 'Soporte Técnico', 'IT', '2019-10-12', 'Tech Solutions'),
('Pablo Torres', 'Consultor', 'Consultoría', '2021-03-07', 'Consulting Experts'),
('José Navarro', 'Administrador', 'Administración', '2020-08-19', 'Admin Services'),
('Laura Ruiz', 'Coordinadora', 'Operaciones', '2019-01-30', 'Operations Co.'),
('Andrés Silva', 'Ingeniero', 'Producción', '2018-07-25', 'Production Inc.'),
('Carmen Vega', 'Especialista', 'Calidad', '2020-11-17', 'Quality Assured');

It shows that the dropdown for (nombre) works

Add First filter

Add Second Filter


The filter for (nombre) stops being a dropdown and becomes a search box

It is worth noting that this problem also occurs if I use both queries on the same tab.