Browse Source

fix(admin-ui): Fix route config for settings tabs

Fixes #2623
Michael Bromley 2 years ago
parent
commit
4e7bbb120f
1 changed files with 3 additions and 3 deletions
  1. 3 3
      packages/admin-ui/src/lib/settings/src/settings.routes.ts

+ 3 - 3
packages/admin-ui/src/lib/settings/src/settings.routes.ts

@@ -56,7 +56,7 @@ export const createRoutes = (pageService: PageService): Route[] => [
         path: 'channels/:id',
         path: 'channels/:id',
         component: PageComponent,
         component: PageComponent,
         data: {
         data: {
-            locationId: 'channel-list',
+            locationId: 'channel-detail',
             breadcrumb: { label: _('breadcrumb.channels'), link: ['../', 'channels'] },
             breadcrumb: { label: _('breadcrumb.channels'), link: ['../', 'channels'] },
         },
         },
         children: pageService.getPageTabRoutes('channel-detail'),
         children: pageService.getPageTabRoutes('channel-detail'),
@@ -74,7 +74,7 @@ export const createRoutes = (pageService: PageService): Route[] => [
         path: 'stock-locations/:id',
         path: 'stock-locations/:id',
         component: PageComponent,
         component: PageComponent,
         data: {
         data: {
-            locationId: 'stock-location-list',
+            locationId: 'stock-location-detail',
             breadcrumb: { label: _('breadcrumb.stock-locations'), link: ['../', 'stock-locations'] },
             breadcrumb: { label: _('breadcrumb.stock-locations'), link: ['../', 'stock-locations'] },
         },
         },
         children: pageService.getPageTabRoutes('stock-location-detail'),
         children: pageService.getPageTabRoutes('stock-location-detail'),
@@ -92,7 +92,7 @@ export const createRoutes = (pageService: PageService): Route[] => [
         path: 'sellers/:id',
         path: 'sellers/:id',
         component: PageComponent,
         component: PageComponent,
         data: {
         data: {
-            locationId: 'seller-list',
+            locationId: 'seller-detail',
             breadcrumb: { label: _('breadcrumb.sellers'), link: ['../', 'sellers'] },
             breadcrumb: { label: _('breadcrumb.sellers'), link: ['../', 'sellers'] },
         },
         },
         children: pageService.getPageTabRoutes('seller-detail'),
         children: pageService.getPageTabRoutes('seller-detail'),