Skip to content

Commit

Permalink
πŸ› Autocomplete: undefined param in optionDiabled (#3689)
Browse files Browse the repository at this point in the history
  • Loading branch information
oddvernes authored Nov 20, 2024
1 parent 1184fe5 commit ea564fd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ function AutocompleteInner<T>(
const allDisabled = enabledItems.length === 0

const selectedDisabledItemsSet = useMemo(
() => new Set(selectedItems.filter(optionDisabled)),
() => new Set(selectedItems.filter((x) => x !== null && optionDisabled(x))),
[selectedItems, optionDisabled],
)

Expand Down

0 comments on commit ea564fd

Please sign in to comment.