Fix Selectores

This commit is contained in:
2025-09-07 20:12:03 -03:00
parent 50d3c6bce9
commit 7f49362e55
9 changed files with 45 additions and 39 deletions

View File

@@ -31,7 +31,7 @@ export const DiputadosWidget = () => {
const { data: municipios = [], isLoading: isLoadingMunicipios } = useQuery<MunicipioSimple[]>({
queryKey: ['municipios', CATEGORIA_ID], // Key única para la lista de municipios de diputados
queryFn: () => getMunicipios(), // Pide solo los municipios que votan diputados
queryFn: () => getMunicipios(CATEGORIA_ID), // Pide solo los municipios que votan diputados
});
// useEffect para establecer "LA PLATA" por defecto