From dbfd4cf050895fa59eaad5a1199ff6fb3962ddc6 Mon Sep 17 00:00:00 2001 From: ajnart Date: Mon, 23 May 2022 12:38:10 +0200 Subject: [PATCH] :bug: Fix search module default queryUrl --- src/components/modules/search/SearchModule.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/modules/search/SearchModule.tsx b/src/components/modules/search/SearchModule.tsx index ced4d9fb5..7e0176437 100644 --- a/src/components/modules/search/SearchModule.tsx +++ b/src/components/modules/search/SearchModule.tsx @@ -26,7 +26,7 @@ export default function SearchBar(props: any) { const { config, setConfig } = useConfig(); const [opened, setOpened] = useState(false); const [icon, setIcon] = useState(); - const queryUrl = config.settings.searchUrl || 'https://www.google.com/search?q='; + const queryUrl = config.settings.searchUrl ?? 'https://www.google.com/search?q='; const textInput = useRef(); useHotkeys([['ctrl+K', () => textInput.current && textInput.current.focus()]]);