Skip to content

Commit

Permalink
remove unnecessary breadcrumb fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
gumaerc committed Oct 9, 2024
1 parent 7c302a1 commit cc00807
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -150,13 +150,11 @@ const SubTopicBreadcrumbs: React.FC<SubTopicBreadcrumbsProps> = (props) => {
if (!topic?.parent) {
return null
}
return parentTopic?.channel_url ? (
return (
<BreadcrumbsInternal
current={parentTopic?.name}
currentHref={parentTopic?.channel_url}
/>
) : (
<BreadcrumbsInternal current={parentTopic?.name} />
)
}

Expand Down

0 comments on commit cc00807

Please sign in to comment.