diff --git a/src/client/theme-default/support/docsearch.ts b/src/client/theme-default/support/docsearch.ts index 27b8c78a1..d22c659c6 100644 --- a/src/client/theme-default/support/docsearch.ts +++ b/src/client/theme-default/support/docsearch.ts @@ -220,7 +220,9 @@ export function buildSidePanelProps( askAi: DocSearchAskAi, options: DefaultTheme.AlgoliaSearchOptions ): ResolvedSidePanelProps { - const { sidePanel, ...askAiRest } = askAi + const { sidePanel, ...askAiRest } = JSON.parse( + JSON.stringify(askAi) + ) as DocSearchAskAi return { container: '#vp-docsearch-sidepanel',