Skip to content

Commit

Permalink
πŸ› Hotfix: autocomplete "disabled items" story bug
Browse files Browse the repository at this point in the history
  • Loading branch information
oddvernes committed Aug 5, 2024
1 parent ae2498f commit 7aa6f53
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ export const DisabledOption: StoryFn<AutocompleteProps<MyOptionType>> = (
) => {
const { options, optionLabel } = args
const [filter, setFilter] = useState<boolean>(true)
const isOptionDisabled = (item: MyOptionType) => item.trend === 'πŸ“‰'
const isOptionDisabled = (item: MyOptionType) => item?.trend === 'πŸ“‰'

return (
<>
Expand Down

0 comments on commit 7aa6f53

Please sign in to comment.