Skip to content

Commit

Permalink
docs: add missing key (#6130)
Browse files Browse the repository at this point in the history
---------

Co-authored-by: gioboa <giorgiob.boa@gmail.com>
  • Loading branch information
dejurin and gioboa committed Apr 18, 2024
1 parent 32425f9 commit 8572ed4
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions packages/docs/src/routes/docs/(qwikcity)/advanced/menu/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ contributors:
- AnthonyPAlicea
- mrhoodz
- hamatoyogi
- dejurin
- gioboa
updated_at: '2023-06-25T19:43:33Z'
created_at: '2023-03-20T23:45:13Z'
---
Expand Down Expand Up @@ -109,12 +111,12 @@ export default component$(() => {
return (
<nav class="menu">
{menu
? menu.items?.map((item) => (
<>
? menu.items?.map((item, index) => (
<div key={index}>
<h5>{item.text}</h5>
<ul>
{item.items?.map((item) => (
<li>
{item.items?.map((item, subIndex) => (
<li key={`item-${index}-${subIndex}`}>
<a
href={item.href}
class={{
Expand All @@ -126,7 +128,7 @@ export default component$(() => {
</li>
))}
</ul>
</>
</div>
))
: null}
</nav>
Expand Down

0 comments on commit 8572ed4

Please sign in to comment.