fix input value for radio selection in AddPersons modal

selected value is different for radio or checkbox
for radio value is an object, for checkbox vaue is an array of objects
This commit is contained in:
2021-05-17 22:17:08 +02:00
parent e0dc0a8fdb
commit 5b635fbe58
2 changed files with 13 additions and 5 deletions

View File

@@ -104,7 +104,7 @@ export default {
},
addNewPersons({ selected, modal }) {
console.log('@@@ CLICK button addNewPersons', selected);
this.$store.dispatch('addRequestor', selected);
this.$store.dispatch('addRequestor', selected.shift());
this.$refs.addPersons.resetSearch(); // to cast child method
modal.showModal = false;
}