From 699b01c1d1afab44f1f466bf1ab3c3024155fe61 Mon Sep 17 00:00:00 2001 From: Sivin Varghese <64252451+iamsivin@users.noreply.github.com> Date: Tue, 26 Jul 2022 19:59:46 +0530 Subject: [PATCH] fix: Console warnings from help-center routes (#5117) --- .../routes/dashboard/helpcenter/helpcenter.routes.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/javascript/dashboard/routes/dashboard/helpcenter/helpcenter.routes.js b/app/javascript/dashboard/routes/dashboard/helpcenter/helpcenter.routes.js index d95c8ccb0..635735f55 100644 --- a/app/javascript/dashboard/routes/dashboard/helpcenter/helpcenter.routes.js +++ b/app/javascript/dashboard/routes/dashboard/helpcenter/helpcenter.routes.js @@ -36,7 +36,7 @@ const portalRoutes = [ }, { path: getPortalRoute(':portalSlug'), - name: 'edit_portal', + name: 'portal_slug', roles: ['administrator', 'agent'], component: ShowPortal, }, @@ -70,7 +70,7 @@ const articleRoutes = [ }, { path: getPortalRoute(':portalSlug/:locale/articles/mine'), - name: 'list_all_locale_articles', + name: 'list_mine_articles', roles: ['administrator', 'agent'], component: ListMyArticles, }, @@ -111,7 +111,7 @@ const categoryRoutes = [ path: getPortalRoute( ':portalSlug/:locale/categories/:categorySlug/articles' ), - name: 'show_category', + name: 'show_category_articles', roles: ['administrator', 'agent'], component: ListCategoryArticles, },