Merge pull request #2306 from tugcekucukoglu/refactor

Refactor #2168
pull/2307/head
Tuğçe Küçükoğlu 2022-03-11 14:14:04 +03:00 committed by GitHub
commit 22721e81ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 8 deletions

View File

@ -560,14 +560,11 @@ export default {
else if (this.visibleOptions) {
if (this.optionGroupLabel) {
value = [];
if (this.optionGroupLabel) {
value = [];
this.visibleOptions.forEach(optionGroup => {
for (let option of this.getOptionGroupChildren(optionGroup)) {
value.push(this.getOptionValue(option));
}
});
}
this.visibleOptions.forEach(optionGroup => {
for (let option of this.getOptionGroupChildren(optionGroup)) {
value.push(this.getOptionValue(option));
}
});
}
else {
value = this.visibleOptions.map(option => this.getOptionValue(option));