diff --git a/ui/src/hooks/useMonitoring.js b/ui/src/hooks/useMonitoring.js index 8eb4a09a4..92552dcfd 100644 --- a/ui/src/hooks/useMonitoring.js +++ b/ui/src/hooks/useMonitoring.js @@ -30,10 +30,9 @@ export const useMonitoring = () => { const { project } = useContext(CurrentProjectContext); const getMonitoringDashboardUrl = useCallback( - (envName, routerName, revision) => { + (envName, routerName, revision="$_all") => { const clusterName = getEnvironmentCluster(envName, environments); const projectName = !!project ? project.name : undefined; - return getMonitoringLink(clusterName, projectName, routerName, revision); }, [project, environments] diff --git a/ui/src/router/details/components/page_navigation/RouterDetailsPageNavigation.js b/ui/src/router/details/components/page_navigation/RouterDetailsPageNavigation.js index 5307bb335..5fb8ce4b4 100644 --- a/ui/src/router/details/components/page_navigation/RouterDetailsPageNavigation.js +++ b/ui/src/router/details/components/page_navigation/RouterDetailsPageNavigation.js @@ -39,8 +39,7 @@ export const RouterDetailsPageNavigation = ({ ), href: getMonitoringDashboardUrl( router.environment_name, - router.name, - config.version + router.name ), disabled: !config.version } diff --git a/ui/src/router/list/ListRoutersTable.js b/ui/src/router/list/ListRoutersTable.js index 7c2a63b3d..a2783a1b1 100644 --- a/ui/src/router/list/ListRoutersTable.js +++ b/ui/src/router/list/ListRoutersTable.js @@ -124,8 +124,7 @@ const ListRoutersTable = ({ items, isLoaded, error, onRowClick }) => { const monitoringLink = item.config ? getMonitoringDashboardUrl( item.environment_name, - item.name, - item.config.version + item.name ) : undefined;