mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-25 22:01:13 +00:00
fix: Fix broken link
This commit is contained in:
parent
8bbb6c9652
commit
cb72180f97
1 changed files with 4 additions and 2 deletions
|
@ -9,7 +9,7 @@ import { numToSI } from "../../utils";
|
|||
|
||||
interface BadgesProps {
|
||||
counts: CommunityAggregates | SiteAggregates;
|
||||
community_view?: CommunityView;
|
||||
community_view: CommunityView;
|
||||
}
|
||||
|
||||
const isCommunityAggregates = (
|
||||
|
@ -96,7 +96,9 @@ export const Badges = ({ counts, community_view }: BadgesProps) => {
|
|||
<li className="list-inline-item">
|
||||
<Link
|
||||
className="badge badge-primary"
|
||||
to={`/modlog/${!!community_view ?? community_view?.community.id}`}
|
||||
to={`/modlog${
|
||||
community_view ? `/${community_view.community.id}` : ""
|
||||
}`}
|
||||
>
|
||||
{i18n.t("modlog")}
|
||||
</Link>
|
||||
|
|
Loading…
Reference in a new issue