Skip to content
Snippets Groups Projects
Commit d9d2326c authored by Aurore Chayrouse's avatar Aurore Chayrouse
Browse files

Organizations location : error message set

parent 0df42c00
No related branches found
No related tags found
No related merge requests found
......@@ -80,7 +80,7 @@ export default {
this.loading = false
if (!res.data.features.length) {
this.$emit('addressError', "L'adresse n'a pas été trouvé")
this.$emit('addressError', "L'adresse n'a pas été trouvée")
return;
} else {
this.enableMap = true
......@@ -91,6 +91,10 @@ export default {
this.setMarker(pointData.geometry.coordinates[1], pointData.geometry.coordinates[0])
}
})
.catch( () => {
this.loading = false;
this.$emit('addressError', "L'adresse n'a pas été trouvée")
})
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment