Skip to content

Commit 0d7c0b2

Browse files
committed
refactor: Update NavMain.vue to use item.href instead of item.url
The change replaces `item.url` with `item.href` in the NavMain.vue component to align with the updated data structure. This ensures consistency and avoids potential issues with undefined properties. No breaking changes are introduced.
1 parent dbf7c0f commit 0d7c0b2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

resources/js/components/NavMain.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ const page = usePage<SharedData>();
2222
<SidebarGroupLabel>Platform</SidebarGroupLabel>
2323
<SidebarMenu>
2424
<SidebarMenuItem v-for="item in items" :key="item.title">
25-
<SidebarMenuButton as-child :is-active="item.url === page.url">
26-
<Link :href="item.url">
25+
<SidebarMenuButton as-child :is-active="item.href === page.url">
26+
<Link :href="item.href">
2727
<component :is="item.icon" />
2828
<span>{{ item.title }}</span>
2929
</Link>

0 commit comments

Comments
 (0)