mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 15:13:50 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user