Skip to content

Commit

Permalink
Fix search page breaking on initial load when logged in (#1781)
Browse files Browse the repository at this point in the history
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
  • Loading branch information
SleeplessOne1917 and dessalines authored Jul 3, 2023
1 parent ca05902 commit a0cf54c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/handlers/catch-all-handler.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export default async (req: Request, res: Response) => {
}

const error = Object.values(routeData).find(
res => res.state === "failed"
res => res.state === "failed" && res.msg !== "couldnt_find_object" // TODO: find a better way of handling errors
) as FailedRequestState | undefined;

// Redirect to the 404 if there's an API error
Expand Down

0 comments on commit a0cf54c

Please sign in to comment.