Skip to content

Commit

Permalink
UI: Add missing call to new query path making function (#13162)
Browse files Browse the repository at this point in the history
Reapplies #13156
  • Loading branch information
lukeheath authored Aug 4, 2023
1 parent 8d1fb85 commit 4cc5bfb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions changes/13154-fix-host-details-custom-query-route
Original file line number Diff line number Diff line change
@@ -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.
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit 4cc5bfb

Please sign in to comment.