From 26e6eeeaee615ee489ea5c291e2421aaabd97268 Mon Sep 17 00:00:00 2001 From: Agata Kosior Date: Tue, 16 Jul 2024 13:16:55 +0200 Subject: [PATCH] fix: show no results found message when no search result for assignee --- src/pages/workspace/card/issueNew/AssigneeStep.tsx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/pages/workspace/card/issueNew/AssigneeStep.tsx b/src/pages/workspace/card/issueNew/AssigneeStep.tsx index 23acb3d4a24a..042e93ae2fae 100644 --- a/src/pages/workspace/card/issueNew/AssigneeStep.tsx +++ b/src/pages/workspace/card/issueNew/AssigneeStep.tsx @@ -119,6 +119,12 @@ function AssigneeStep({policy}: AssigneeStepProps) { ]; }, [membersDetails, debouncedSearchTerm]); + const headerMessage = useMemo(() => { + const searchValue = debouncedSearchTerm.trim().toLowerCase(); + + return OptionsListUtils.getHeaderMessage(sections[0].data.length !== 0, false, searchValue); + }, [debouncedSearchTerm, sections]); + return (