diff --git a/awx/ui_next/src/screens/Job/Jobs.jsx b/awx/ui_next/src/screens/Job/Jobs.jsx index e1d5e4e528..55a9c36660 100644 --- a/awx/ui_next/src/screens/Job/Jobs.jsx +++ b/awx/ui_next/src/screens/Job/Jobs.jsx @@ -19,7 +19,6 @@ import { JOB_TYPE_URL_SEGMENTS } from '@constants'; function Jobs({ i18n }) { const history = useHistory(); const location = useLocation(); - const { id } = useParams(); const match = useRouteMatch(); const [breadcrumbConfig, setBreadcrumbConfig] = useState({ '/jobs': i18n._(t`Jobs`), @@ -42,6 +41,12 @@ function Jobs({ i18n }) { [i18n] ); + function TypeRedirect({ view }) { + const { id } = useParams(); + const { path } = useRouteMatch(); + return ; + } + return ( <> @@ -55,10 +60,10 @@ function Jobs({ i18n }) { - + - + - +