From 3e146fe80c63c57717e6f54395a1ce89e61b576a Mon Sep 17 00:00:00 2001 From: clement Date: Tue, 17 Sep 2024 10:51:45 +0200 Subject: [PATCH] fix search results without appelation code --- front/src/app/components/search/SearchResult.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/front/src/app/components/search/SearchResult.tsx b/front/src/app/components/search/SearchResult.tsx index 38632defdd..dfa11d733c 100644 --- a/front/src/app/components/search/SearchResult.tsx +++ b/front/src/app/components/search/SearchResult.tsx @@ -86,7 +86,7 @@ const SearchResultComponent = ({ linkProps={{ ...routes.searchResult({ appellationCode: - preview && appellations.length === 0 + preview || appellations.length === 0 ? "" : appellations[0].appellationCode, siret,