Merge branch 'master' of https://gitlab.com/m3f_usm/admin_transporte/frontend into develop/Ronald
commit
7671735f40
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue