aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/components/navigation_menu/menu_items.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/navigation_menu/menu_items.rs b/src/components/navigation_menu/menu_items.rs
index f3e33b3..d86fb56 100644
--- a/src/components/navigation_menu/menu_items.rs
+++ b/src/components/navigation_menu/menu_items.rs
@@ -37,7 +37,7 @@ pub struct Props {
pub fn menu_items(props: &Props) -> Html {
let menu_items: Html = props.items
.iter()
- .map(|item| html!(<menu_item::MenuItem icon={item.icon} label={item.label.clone()} to={item.to.clone()} />))
+ .map(|item| html!(<menu_item::MenuItem key={item.label.clone()} icon={item.icon} label={item.label.clone()} to={item.to.clone()} />))
.collect();
html! {