From bd7e46f66de7d784607a172c845885fe323158b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tu=C4=9F=C3=A7e=20K=C3=BC=C3=A7=C3=BCko=C4=9Flu?= Date: Fri, 11 Mar 2022 14:13:33 +0300 Subject: [PATCH] Refactor #2168 --- src/components/multiselect/MultiSelect.vue | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/src/components/multiselect/MultiSelect.vue b/src/components/multiselect/MultiSelect.vue index b4c7117ca..6d24074d8 100755 --- a/src/components/multiselect/MultiSelect.vue +++ b/src/components/multiselect/MultiSelect.vue @@ -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));