Skip to content

Commit

Permalink
chore: appease ts
Browse files Browse the repository at this point in the history
  • Loading branch information
mbhrznr committed Nov 6, 2024
1 parent 0f760b8 commit 9b55336
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions frontend/islands/GlobalSearch.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ export function GlobalSearch(
searchNRef.current.displayed = searchN;
batch(() => {
selectionIdx.value = -1;
// @ts-ignore orama's return type doesn't match our type
suggestions.value = res?.hits.map((hit) => hit.document) ?? [];
});
} else if (kind === "packages") {
Expand Down
1 change: 1 addition & 0 deletions frontend/routes/packages.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ export const handler: Handlers<Data, State> = {
}

return ctx.render({
// @ts-ignore orama's return type doesn't match our type
packages,
query: search,
page,
Expand Down

0 comments on commit 9b55336

Please sign in to comment.