Skip to content

Commit

Permalink
fix(search-pro): fix options not working as expected, close #3712
Browse files Browse the repository at this point in the history
  • Loading branch information
Mister-Hope committed Dec 9, 2023
1 parent 791d31e commit a9e97f4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/search-pro/src/node/plugin.ts
Expand Up @@ -57,10 +57,10 @@ export const searchProPlugin =
default: searchProLocales,
}),
SEARCH_PRO_OPTIONS: {
searchDelay: options.searchDelay || 150,
suggestDelay: options.suggestDelay || 0,
queryHistoryCount: options.queryHistoryCount || 5,
resultHistoryCount: options.resultHistoryCount || 5,
searchDelay: options.searchDelay ?? 150,
suggestDelay: options.suggestDelay ?? 0,
queryHistoryCount: options.queryHistoryCount ?? 5,
resultHistoryCount: options.resultHistoryCount ?? 5,
hotKeys: options.hotKeys || [
{ key: "k", ctrl: true },
{ key: "/", ctrl: true },
Expand Down

0 comments on commit a9e97f4

Please sign in to comment.