From f36d7b57e639aa32df4dc6db860b67506e8ab0be Mon Sep 17 00:00:00 2001 From: leandro <leandroalmada86@gmail.com> Date: Mon, 27 Sep 2021 11:10:55 +0200 Subject: [PATCH] fix features in Feature_list --- src/views/feature/Feature_list.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/views/feature/Feature_list.vue b/src/views/feature/Feature_list.vue index 8f31d20b..bc344e61 100644 --- a/src/views/feature/Feature_list.vue +++ b/src/views/feature/Feature_list.vue @@ -607,7 +607,6 @@ export default { }, loadFeatures(features) { this.geojsonFeatures = features; - console.log(this.geojsonFeatures); const urlParams = new URLSearchParams(window.location.search); const featureType = urlParams.get("feature_type"); const featureStatus = urlParams.get("status"); @@ -694,9 +693,10 @@ export default { }); // --------- End sidebar events ---------- - console.log(this.$store.state.map.geojsonFeatures); - if(this.$store.state.map.geojsonFeatures){ - this.loadFeatures(this.$store.state.map.geojsonFeatures); + if(this.$route.params.slug != this.project.slug){ + if(this.$store.state.map.geojsonFeatures){ + this.loadFeatures(this.$store.state.map.geojsonFeatures); + } } else{ const url=`${this.$store.state.configuration.VUE_APP_DJANGO_API_BASE}projects/${this.$route.params.slug}/feature/?output=geojson`; -- GitLab