mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-26 14:21:13 +00:00
Fix search page breaking on initial load when logged in (#1781)
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
This commit is contained in:
parent
ca05902423
commit
a0cf54c0a0
1 changed files with 1 additions and 1 deletions
|
@ -90,7 +90,7 @@ export default async (req: Request, res: Response) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
const error = Object.values(routeData).find(
|
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;
|
) as FailedRequestState | undefined;
|
||||||
|
|
||||||
// Redirect to the 404 if there's an API error
|
// Redirect to the 404 if there's an API error
|
||||||
|
|
Loading…
Reference in a new issue