Skip to content
This repository has been archived by the owner on Dec 15, 2024. It is now read-only.

Commit

Permalink
fix: sport.sport may be undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtemSBulgakov committed Nov 23, 2024
1 parent 6898e62 commit 566c76e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion frontend/src/routes/sports/$sportId.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,9 @@ function RouteComponent() {
<Button asChild variant="outline">
<Link
to="/search"
search={{ filters: { discipline: [{ sport: sport!.sport }] } }}
search={{
filters: { discipline: [{ sport: sport?.sport ?? "" }] },
}}
>
События спорта
<ArrowUpRight />
Expand Down

0 comments on commit 566c76e

Please sign in to comment.