From c2e2954dfa22723792c06cae1f277094c0db7280 Mon Sep 17 00:00:00 2001 From: Shivam Mishra Date: Tue, 19 Nov 2024 08:39:09 +0530 Subject: [PATCH] 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 --- .../dashboard/components-next/sidebar/Sidebar.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/javascript/dashboard/components-next/sidebar/Sidebar.vue b/app/javascript/dashboard/components-next/sidebar/Sidebar.vue index a7d3a1cee..2d4fdf1dd 100644 --- a/app/javascript/dashboard/components-next/sidebar/Sidebar.vue +++ b/app/javascript/dashboard/components-next/sidebar/Sidebar.vue @@ -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, + }), })), }, {