diff --git a/src/components/Project/FeaturesListAndMap/FeaturesListAndMapFilters.vue b/src/components/Project/FeaturesListAndMap/FeaturesListAndMapFilters.vue index 2c85be503f2d7d6eddc3857c87ebe5a6f50254b1..58d6c759154fcc32159289f53fe0fa10815cf9b6 100644 --- a/src/components/Project/FeaturesListAndMap/FeaturesListAndMapFilters.vue +++ b/src/components/Project/FeaturesListAndMap/FeaturesListAndMapFilters.vue @@ -72,7 +72,7 @@ </div> <div class="scrolling menu text-wrap"> <router-link - v-for="(type, index) in feature_types" + v-for="(type, index) in filteredFeatureTypeChoices" :key="type.slug + index" :to="{ name: 'ajouter-signalement', @@ -142,7 +142,7 @@ > <label>Type</label> <Dropdown - :options="featureTypeChoices" + :options="featureTypeTitles" :selected="form.type.selected" :selection.sync="form.type.selected" :search="true" @@ -286,7 +286,7 @@ export default { } return []; }, - featureTypeChoices() { + featureTypeTitles() { return this.feature_types.map((el) => el.title); }, filteredStatusChoices() { @@ -295,6 +295,11 @@ export default { this.project && this.project.moderation ? true : el.value !== 'pending' ); }, + filteredFeatureTypeChoices() { + return this.feature_types.filter((fType) => + !fType.geom_type.includes('multi') + ); + }, }, watch: {