From 8d1fb85d9c7967ae98902d1b0c1a700b441c97a3 Mon Sep 17 00:00:00 2001 From: Luke Heath Date: Fri, 4 Aug 2023 14:22:15 -0700 Subject: [PATCH] Revert UI query path fix (#13161) --- changes/13154-fix-host-details-custom-query-route | 2 -- .../pages/hosts/details/HostDetailsPage/HostDetailsPage.tsx | 4 +--- 2 files changed, 1 insertion(+), 5 deletions(-) delete mode 100644 changes/13154-fix-host-details-custom-query-route 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) => {