From b80a19395ffe19ba09c8d30ff0e3c874222df1e7 Mon Sep 17 00:00:00 2001 From: Charles Teague Date: Tue, 5 Dec 2023 13:51:26 -0500 Subject: [PATCH] Correct default kbd shortcut behavior --- src/project/types/website/website-search.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/project/types/website/website-search.ts b/src/project/types/website/website-search.ts index 732cae7acf..09111f4dd9 100644 --- a/src/project/types/website/website-search.ts +++ b/src/project/types/website/website-search.ts @@ -442,10 +442,12 @@ function searchKbdShortcut( ) { if (searchConfig && typeof searchConfig === "object") { const kbd = searchConfig[kKbShortcutSearch]; - if (Array.isArray(kbd)) { - return kbd; - } else { - return [kbd]; + if (kbd) { + if (Array.isArray(kbd)) { + return kbd; + } else { + return [kbd]; + } } } return ["f", "/", "s"];