From 1608cdcbe7f052f64b81112ab1f1d791ae8d1459 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Chalifour?= Date: Fri, 22 Oct 2021 20:32:50 +0200 Subject: [PATCH] Fix preconnect link to target search cluster The `appId` was retrieved from props but the `` component is never instantiated with props. So the preconnect link targeted an unknown search cluster: ```html ``` This fixes the preconnect link by getting the `appId` from the website config. --- src/components/Search.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/Search.tsx b/src/components/Search.tsx index 117bf1d3c1e..a531a06190a 100644 --- a/src/components/Search.tsx +++ b/src/components/Search.tsx @@ -46,7 +46,6 @@ const options = { }; let DocSearchModal: any = null; export const Search: React.FC = ({ - appId, searchParameters = { hitsPerPage: 5, }, @@ -93,7 +92,7 @@ export const Search: React.FC = ({