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

Revert "Merge branch 'REDMINE-ISSUES/12576' into 'develop'"

This reverts merge request !168
parent bd609a98
No related branches found
No related tags found
No related merge requests found
......@@ -625,12 +625,12 @@ export default {
},
addFeatureToMap() {
const url = `${this.$store.state.configuration.VUE_APP_DJANGO_API_BASE}projects/${this.$route.params.slug}/feature/` +
`?feature_type__slug=${this.$store.state.feature_type.feature_types[0].slug}&output=geojson`;
const currentFeatureId = this.$route.params.slug_signal;
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) => {
const feature = response.data.features[0];
const feature = response.data;
if (feature) {
const currentFeature = [feature];
const featureGroup = mapUtil.addFeatures(
......@@ -675,7 +675,6 @@ export default {
"feature_type/SET_CURRENT_FEATURE_TYPE_SLUG",
this.$route.params.slug_type_signal
);
console.log('hola')
this.getFeatureEvents();
this.getFeatureAttachments();
this.getLinkedFeatures();
......
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