Skip to content
Snippets Groups Projects
Commit 5facc0f7 authored by Sébastien DA ROCHA's avatar Sébastien DA ROCHA :bicyclist:
Browse files

Merge branch 'ticket/11771' into 'develop'

fix features in Feature_list

See merge request geocontrib/geocontrib-frontend!28
parents 5e03c577 f36d7b57
No related branches found
No related tags found
No related merge requests found
...@@ -607,7 +607,6 @@ export default { ...@@ -607,7 +607,6 @@ export default {
}, },
loadFeatures(features) { loadFeatures(features) {
this.geojsonFeatures = features; this.geojsonFeatures = features;
console.log(this.geojsonFeatures);
const urlParams = new URLSearchParams(window.location.search); const urlParams = new URLSearchParams(window.location.search);
const featureType = urlParams.get("feature_type"); const featureType = urlParams.get("feature_type");
const featureStatus = urlParams.get("status"); const featureStatus = urlParams.get("status");
...@@ -694,9 +693,10 @@ export default { ...@@ -694,9 +693,10 @@ export default {
}); });
// --------- End sidebar events ---------- // --------- End sidebar events ----------
console.log(this.$store.state.map.geojsonFeatures); if(this.$route.params.slug != this.project.slug){
if(this.$store.state.map.geojsonFeatures){ if(this.$store.state.map.geojsonFeatures){
this.loadFeatures(this.$store.state.map.geojsonFeatures); this.loadFeatures(this.$store.state.map.geojsonFeatures);
}
} }
else{ else{
const url=`${this.$store.state.configuration.VUE_APP_DJANGO_API_BASE}projects/${this.$route.params.slug}/feature/?output=geojson`; const url=`${this.$store.state.configuration.VUE_APP_DJANGO_API_BASE}projects/${this.$route.params.slug}/feature/?output=geojson`;
......
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