Skip to content

Commit

Permalink
fix: Do not enable search on search=false
Browse files Browse the repository at this point in the history
  • Loading branch information
3y3 committed Oct 18, 2024
1 parent 4c11edc commit b647f0b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/resolvers/md2html.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,10 @@ const getFileProps = async (options: ResolverOptions) => {
},
lang,
langs,
search: {
...search,
search: search ? {
...(search === true ? {provider: 'local'} : search),
...SearchService.config(lang),
},
} : undefined,
analytics,
};

Expand Down

0 comments on commit b647f0b

Please sign in to comment.