Skip to content

Commit e172d78

Browse files
committed
Update app-sidebar.tsx
1 parent 9817d11 commit e172d78

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/client/src/components/app-sidebar.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,9 @@ export function AppSidebar({ objects, appMetadata, ...props }: React.ComponentPr
9595
return (
9696
<SidebarMenuSubItem key={subIdx}>
9797
<SidebarMenuSubButton
98-
isActive={subItemType === 'object' ? path.includes(`/object/${subItem.object}`) : path.endsWith(subItem.url)}
98+
isActive={subItemType === 'object' ? path.includes(`/object/${subItem.object_name}`) : path.endsWith(subItem.url)}
9999
onClick={() => {
100-
if (subItemType === 'object') navigate(getObjectPath(subItem.object));
100+
if (subItemType === 'object') navigate(getObjectPath(subItem.object_name));
101101
else if (subItemType === 'page') navigate(subItem.url);
102102
else if (subItemType === 'url') window.open(subItem.url, '_blank');
103103
}}

0 commit comments

Comments
 (0)