diff --git a/changes/13154-fix-host-details-custom-query-route b/changes/13154-fix-host-details-custom-query-route deleted file mode 100644 index 3d3305d9f4..0000000000 --- a/changes/13154-fix-host-details-custom-query-route +++ /dev/null @@ -1,2 +0,0 @@ -- Fixed a bug that occurred when a user tries to create a custom query from the "query" action on a - host's details page. diff --git a/frontend/pages/hosts/details/HostDetailsPage/HostDetailsPage.tsx b/frontend/pages/hosts/details/HostDetailsPage/HostDetailsPage.tsx index 788e6fceb3..f121702357 100644 --- a/frontend/pages/hosts/details/HostDetailsPage/HostDetailsPage.tsx +++ b/frontend/pages/hosts/details/HostDetailsPage/HostDetailsPage.tsx @@ -486,9 +486,7 @@ const HostDetailsPage = ({ }; const onQueryHostCustom = () => { - router.push( - PATHS.NEW_QUERY() + TAGGED_TEMPLATES.queryByHostRoute(host?.id) - ); + router.push(PATHS.NEW_QUERY + TAGGED_TEMPLATES.queryByHostRoute(host?.id)); }; const onQueryHostSaved = (selectedQuery: ISchedulableQuery) => {