Skip to content

Commit

Permalink
Null items should not be added to list of unique items. fixes #14421
Browse files Browse the repository at this point in the history
  • Loading branch information
billerby committed Dec 5, 2021
1 parent 85a1186 commit 411dfc8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/vuetify/src/components/VSelect/VSelect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,10 @@ export default baseMixins.extend<options>().extend({
for (let index = 0; index < arr.length; ++index) {
const item = arr[index]

// Do not return null values if existant (#14421)
if (item == null) {
continue
}
// Do not deduplicate headers or dividers (#12517)
if (item.header || item.divider) {
uniqueValues.set(item, item)
Expand Down

0 comments on commit 411dfc8

Please sign in to comment.