From 3ed3875d684b8dd08b31fad580860b2114f528fd Mon Sep 17 00:00:00 2001 From: Adam Antal Date: Fri, 19 Apr 2024 11:48:50 +0200 Subject: [PATCH] Provide a unique key to each autosuggest category item so it rerenders --- src/components/autosuggest-category/autosuggest-category.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/autosuggest-category/autosuggest-category.tsx b/src/components/autosuggest-category/autosuggest-category.tsx index edd524311e..9f92d4a32c 100644 --- a/src/components/autosuggest-category/autosuggest-category.tsx +++ b/src/components/autosuggest-category/autosuggest-category.tsx @@ -40,7 +40,7 @@ const AutosuggestCategory: FC = ({ "autosuggest__text-item--highlight": highlightedIndex === index } )} - key={item.term + (item.work?.workId || "")} + key={`${item.term}-${index}`} {...getItemProps({ item, index })} data-cy={dataCy} >