Compare commits

...

2 commits

Author SHA1 Message Date
Dessalines
25ce4a6eb0
Merge branch 'main' into search-error 2023-07-03 16:43:36 -04:00
SleeplessOne1917
4cee18cd0b Fix search page breaking on initial load when logged in 2023-07-03 12:04:18 -04:00

View file

@ -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