diff --git a/changes/13154-fix-host-details-custom-query-route b/changes/13154-fix-host-details-custom-query-route new file mode 100644 index 0000000000..ad3ce32d6e --- /dev/null +++ b/changes/13154-fix-host-details-custom-query-route @@ -0,0 +1 @@ +* 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 f121702357..788e6fceb3 100644 --- a/frontend/pages/hosts/details/HostDetailsPage/HostDetailsPage.tsx +++ b/frontend/pages/hosts/details/HostDetailsPage/HostDetailsPage.tsx @@ -486,7 +486,9 @@ 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) => {