From dd305eb15eb11f312ae0e6a7592de4c0aaa1f0ba Mon Sep 17 00:00:00 2001 From: Francisco Sandoval Date: Sun, 26 Nov 2023 12:44:21 -0300 Subject: [PATCH] en mapa ruta: se filtra operador y linea por vigentes --- jsconfig.json | 7 ++++++- src/pages/mapas/Rutas.svelte | 4 ++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/jsconfig.json b/jsconfig.json index 5696a2d..a727ab2 100644 --- a/jsconfig.json +++ b/jsconfig.json @@ -22,7 +22,12 @@ * Typecheck JS in `.svelte` and `.js` files by default. * Disable this if you'd like to use dynamic types. */ - "checkJs": true + "checkJs": true, + + "baseUrl": ".", + "paths": { + "$/*": ["src/*"] + } }, /** * Use global.d.ts instead of compilerOptions.types diff --git a/src/pages/mapas/Rutas.svelte b/src/pages/mapas/Rutas.svelte index 895fc90..ba90f18 100644 --- a/src/pages/mapas/Rutas.svelte +++ b/src/pages/mapas/Rutas.svelte @@ -36,11 +36,11 @@ lineas.filter(el => el.id_operador === id_operador) .sort((a,b) => a.route_short_name < b.route_short_name ? -1 : 1) : []; - getOperadores() + getOperadores({ vigente: 1 }) .then(data => data.sort((a,b) => a.nombre_operador < b.nombre_operador? -1 : 1)) .then(data => operadores = data) .catch(error => alert(error)) - getLineas() + getLineas({ vigente: 1 }) .then(data => data.sort((a,b) => a.nombre_linea < b.nombre_linea? -1 : 1)) .then(data => lineas = data) .catch(error => alert(error))