diff --git a/src/components/feature/FeatureLinkedForm.vue b/src/components/feature/FeatureLinkedForm.vue index 09f5686322a21c53c5d2ddf82fd8e7911add0eb2..919b7f7c540f965a33841cb68b15e2631a9425c4 100644 --- a/src/components/feature/FeatureLinkedForm.vue +++ b/src/components/feature/FeatureLinkedForm.vue @@ -24,7 +24,7 @@ <div class="visible-fields"> <div class="two fields"> <div class="required field"> - <label for="form.relation_type.id_for_label">{{ + <label :for="form.relation_type.id_for_label">{{ form.relation_type.label }}</label> <Dropdown @@ -35,7 +35,7 @@ {{ form.relation_type.errors }} </div> <div class="required field"> - <label for="form.feature_to.id_for_label">{{ + <label :for="form.feature_to.id_for_label">{{ form.feature_to.label }}</label> <SearchFeature @@ -106,7 +106,6 @@ export default { }, computed: { - selected_relation_type: { // getter get() { @@ -138,7 +137,8 @@ export default { }, selectFeatureTo(e) { - this.form.feature_to.value = e; + this.form.feature_to.value = e.feature_id; + this.updateStore(); }, updateStore() { @@ -146,7 +146,7 @@ export default { dataKey: this.linkedForm.dataKey, relation_type: this.form.relation_type.value.value, feature_to: { - feature_id: this.form.feature_to.value.value, + feature_id: this.form.feature_to.value, }, }); },