Skip to content

Commit

Permalink
fix: select component minor bug
Browse files Browse the repository at this point in the history
  • Loading branch information
tarikmehinagic committed Dec 4, 2023
1 parent 49ad702 commit 1627c6f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/Select/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,9 @@ function getInputTitle() {
const titles = [];
for (const value of modelValue.value) {
const found = options.value.find((o) => o.value === value);
titles.push(found.title);
if (found) {
titles.push(found.title);
}
}
return titles.join(', ');
} else {
Expand Down

0 comments on commit 1627c6f

Please sign in to comment.