fix: Remove the warnings generated from the Sidebar component (#10437)

The following warning occurred since the `ChannelLeaf` component was passed extra props. This PR fixes it by passing only the required props
This commit is contained in:
Shivam Mishra
2024-11-19 08:39:09 +05:30
committed by GitHub
parent aaa328be87
commit c2e2954dfa

View File

@@ -140,7 +140,12 @@ const menuItems = computed(() => {
name: `${inbox.name}-${inbox.id}`,
label: inbox.name,
to: accountScopedRoute('inbox_dashboard', { inbox_id: inbox.id }),
component: leafProps => h(ChannelLeaf, { ...leafProps, inbox }),
component: leafProps =>
h(ChannelLeaf, {
label: leafProps.label,
active: leafProps.active,
inbox,
}),
})),
},
{