Skip to content
Snippets Groups Projects
Commit 0cba74ed authored by Timothee P's avatar Timothee P :sunflower:
Browse files

prevent map not displayed when navigating from a non geographical feature

parent 96ce2b74
No related branches found
No related tags found
1 merge request!735REDMINE_ISSUE-19119 | Permettre la gestion de signalements non-géographiques (REDMINE_ISSUE-19667 | La recherche de doublon à l'import de signalement s'applique sur les signalements supprimés)
...@@ -426,7 +426,10 @@ export default { ...@@ -426,7 +426,10 @@ export default {
if (this.feature_type && this.feature_type.geom_type !== 'none') { if (this.feature_type && this.feature_type.geom_type !== 'none') {
mapService.removeFeatures(); mapService.removeFeatures();
this.addFeatureToMap(); this.addFeatureToMap();
} } else {
// empty map in order to detect if map need to be created again when navigating to a classic feature from a non geographical feature (without map)
this.map = null;
}
}, },
pushNgo(newEntry) { pushNgo(newEntry) {
......
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