fixed the check for the type or label key in the options send in search component.

This commit is contained in:
Owaise Imdad committed 2025-03-15 14:46:53 +05:30
1 parent 228b080730
commit 5825151b28
1 file changed
+4 -1
+4 -1
View File
@@ -167,7 +167,10 @@ const Search = ({
: {} : {}
} }
> >
{option[filteredBy] + (secondaryLabel ? ` (${option[secondaryLabel]})` : "")} {option[filteredBy] +
(secondaryLabel && option[secondaryLabel]
? ` (${option[secondaryLabel]})`
: "")}
</ListItem> </ListItem>
); );
}} }}