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:
@@ -140,7 +140,12 @@ const menuItems = computed(() => {
|
|||||||
name: `${inbox.name}-${inbox.id}`,
|
name: `${inbox.name}-${inbox.id}`,
|
||||||
label: inbox.name,
|
label: inbox.name,
|
||||||
to: accountScopedRoute('inbox_dashboard', { inbox_id: inbox.id }),
|
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,
|
||||||
|
}),
|
||||||
})),
|
})),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user