From 543c7a0dcaf11e0400a9deb2465190467e272171 Mon Sep 17 00:00:00 2001 From: Evren <57806596+evrenkaraarslan@users.noreply.github.com> Date: Sat, 15 Apr 2023 20:20:53 +0200 Subject: [PATCH] Cancel double path check and remove unused props (#5925) --- src/components/Layout/Sidebar/SidebarLink.tsx | 2 -- src/components/Layout/Sidebar/SidebarRouteTree.tsx | 3 +-- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/components/Layout/Sidebar/SidebarLink.tsx b/src/components/Layout/Sidebar/SidebarLink.tsx index 0d69b30be..6889a4b10 100644 --- a/src/components/Layout/Sidebar/SidebarLink.tsx +++ b/src/components/Layout/Sidebar/SidebarLink.tsx @@ -18,7 +18,6 @@ interface SidebarLinkProps { wip: boolean | undefined; icon?: React.ReactNode; isExpanded?: boolean; - isBreadcrumb?: boolean; hideArrow?: boolean; isPending: boolean; } @@ -30,7 +29,6 @@ export function SidebarLink({ wip, level, isExpanded, - isBreadcrumb, hideArrow, isPending, }: SidebarLinkProps) { diff --git a/src/components/Layout/Sidebar/SidebarRouteTree.tsx b/src/components/Layout/Sidebar/SidebarRouteTree.tsx index b8db801c6..fa6b0cb25 100644 --- a/src/components/Layout/Sidebar/SidebarRouteTree.tsx +++ b/src/components/Layout/Sidebar/SidebarRouteTree.tsx @@ -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 = (