Skip to content

Commit

Permalink
fix: Property filter duplicates property name in suggestion when the …
Browse files Browse the repository at this point in the history
…label is empty (#530)
  • Loading branch information
connorlanigan authored and Katie George committed Nov 30, 2022
1 parent 5fb04e3 commit 47cc637
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/internal/components/option/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ const Option = ({

return (
<span
title={option.label || option.value}
title={option.label ?? option.value}
data-value={option.value}
className={className}
aria-disabled={disabled}
Expand All @@ -69,7 +69,7 @@ const Option = ({
<span className={clsx(styles.content)}>
<span className={clsx(styles['label-content'])}>
<Label
label={option.label || option.value}
label={option.label ?? option.value}
prefix={option.__labelPrefix}
highlightText={highlightText}
triggerVariant={triggerVariant}
Expand Down

0 comments on commit 47cc637

Please sign in to comment.