Skip to content
This repository has been archived by the owner on Apr 21, 2023. It is now read-only.

Commit

Permalink
Cancel double path check and remove unused props (#5925)
Browse files Browse the repository at this point in the history
  • Loading branch information
evrenkaraarslan authored Apr 15, 2023
1 parent b9c6441 commit 543c7a0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 0 additions & 2 deletions src/components/Layout/Sidebar/SidebarLink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ interface SidebarLinkProps {
wip: boolean | undefined;
icon?: React.ReactNode;
isExpanded?: boolean;
isBreadcrumb?: boolean;
hideArrow?: boolean;
isPending: boolean;
}
Expand All @@ -30,7 +29,6 @@ export function SidebarLink({
wip,
level,
isExpanded,
isBreadcrumb,
hideArrow,
isPending,
}: SidebarLinkProps) {
Expand Down
3 changes: 1 addition & 2 deletions src/components/Layout/Sidebar/SidebarRouteTree.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export function SidebarRouteTree({
) => {
const selected = slug === path;
let listItem = null;
if (!path || !path || heading) {
if (!path || heading) {
// if current route item has no path and children treat it as an API sidebar heading
listItem = (
<SidebarRouteTree
Expand All @@ -114,7 +114,6 @@ export function SidebarRouteTree({
title={title}
wip={wip}
isExpanded={isExpanded}
isBreadcrumb={isBreadcrumb}
hideArrow={isForceExpanded}
/>
<CollapseWrapper duration={250} isExpanded={isExpanded}>
Expand Down

0 comments on commit 543c7a0

Please sign in to comment.