Skip to content

Commit

Permalink
fix: Fix link to daemonset page
Browse files Browse the repository at this point in the history
  • Loading branch information
tiithansen committed Jun 11, 2024
1 parent 6070f80 commit 4f49aa7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/pages/Workloads/Workloads.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ function getScene({ datasource }: { datasource: string }) {
getPage: StatefulSetPage
},
{
routePath: prefixRoute(`${ROUTES.Workloads}/daemonsets/:name`),
routePath: prefixRoute(`${ROUTES.Workloads}/daemonsets/:namespace/:name`),
getPage: DaemonSetPage
},
{
Expand Down
2 changes: 1 addition & 1 deletion src/pages/Workloads/pages/DaemonSetPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export function DaemonSetPage(routeMatch: SceneRouteMatch<any>, parent: SceneApp
titleIcon: 'dashboard',
$variables: variables,
$timeRange: timeRange,
url: prefixRoute(`${ROUTES.Workloads}/daemonsets/${routeMatch.params.name}`),
url: prefixRoute(`${ROUTES.Workloads}/daemonsets/${routeMatch.params.namespace}/${routeMatch.params.name}`),
getScene: () => getScene(routeMatch.params.name),
getParentPage: () => parent,
})
Expand Down

0 comments on commit 4f49aa7

Please sign in to comment.