From 309a5ed257e1d957796458abb86a4b9781ceeed5 Mon Sep 17 00:00:00 2001 From: Akbar Abdrakhmanov Date: Wed, 11 Sep 2024 19:12:15 +0500 Subject: [PATCH] do not show a chip for null in owner and reviewers --- .../CustomSearchAndFilter.tsx | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/static/client/components/OwnerAndReviewers/CustomSearchAndFilter.tsx b/static/client/components/OwnerAndReviewers/CustomSearchAndFilter.tsx index f8cb91aa..8e3e2a8a 100644 --- a/static/client/components/OwnerAndReviewers/CustomSearchAndFilter.tsx +++ b/static/client/components/OwnerAndReviewers/CustomSearchAndFilter.tsx @@ -59,14 +59,17 @@ const CustomSearchAndFilter = ({ data-active="true" data-empty="true" > - {selectedOptions.map((option) => ( - - {option.name} - - - ))} + {selectedOptions.map( + (option) => + option && ( + + {option.name} + + + ), + )}