From 5825151b28700360fc7901c70eee02a96d067124 Mon Sep 17 00:00:00 2001 From: Owaise Imdad Date: Sat, 15 Mar 2025 14:46:53 +0530 Subject: [PATCH] fixed the check for the type or label key in the options send in search component. --- src/Components/Inputs/Search/index.jsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Components/Inputs/Search/index.jsx b/src/Components/Inputs/Search/index.jsx index 647af874a..9e08a0dc2 100644 --- a/src/Components/Inputs/Search/index.jsx +++ b/src/Components/Inputs/Search/index.jsx @@ -167,7 +167,10 @@ const Search = ({ : {} } > - {option[filteredBy] + (secondaryLabel ? ` (${option[secondaryLabel]})` : "")} + {option[filteredBy] + + (secondaryLabel && option[secondaryLabel] + ? ` (${option[secondaryLabel]})` + : "")} ); }}