Merge branch 'master' of https://gitlab.com/m3f_usm/admin_transporte/frontend into develop/Ronald

francisco/photos
Ronald Morales 2024-01-29 22:48:14 -03:00
commit 7671735f40
1 changed files with 5 additions and 1 deletions

View File

@ -68,7 +68,7 @@
async function cargar_regiones_comunas() {
try {
regiones = await getRegiones()
comunas = await getComunas()
comunas = await getComunas({ ordering: 'nombre_comuna' })
} catch (error) {
globalThis.toast.error(error)
}
@ -89,7 +89,11 @@
function crear_marcadores_por_criterio() {
if (form.id_region) {
comunas_x_region = comunas.filter(comuna => comuna.id_region === form.id_region)
} else {
form.id_comuna = null
comunas_x_region = []
}
if (!$storeParaderos?.marks) {
setTimeout(crear_marcadores_por_criterio, 1000)
return