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

fix url missing query parameter

parent ad4837c6
No related branches found
No related tags found
No related merge requests found
......@@ -564,7 +564,7 @@ export default {
addFeatureToMap() {
const currentFeatureId = this.$route.params.slug_signal;
const url = `${this.$store.state.configuration.VUE_APP_DJANGO_API_BASE}features/${currentFeatureId}/?output=geojson`;
const url = `${this.$store.state.configuration.VUE_APP_DJANGO_API_BASE}features/${currentFeatureId}/?feature_type__slug=${this.$route.params.slug_type_signal}&output=geojson`;
axios
.get(url)
.then((response) => {
......
......@@ -411,7 +411,7 @@ export default {
}
}
}
return []
return [];
},
},
......@@ -875,7 +875,7 @@ export default {
});
const currentFeatureId = this.$route.params.slug_signal;
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/?feature_type__slug=${this.feature_type.slug}&output=geojson`;
axios
.get(url)
.then((response) => {
......@@ -932,13 +932,13 @@ export default {
},
created() {
/* if (!this.project) {
console.log(this.$store.state.projects);
this.project = this.$store.state.projects.find(
//if (!this.project) {
//console.log(this.$store.state.projects);
/* this.project = this.$store.state.projects.find(
(project) => project.slug === this.$store.state.project_slug
);
this.filterStatusChoicesF();
} */
); */
//this.filterStatusChoicesF();
//}
this.$store.commit(
"feature_type/SET_CURRENT_FEATURE_TYPE_SLUG",
......
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