From 6c664aeb22673e6eb42348ea50b5a098509f7deb Mon Sep 17 00:00:00 2001 From: Shahzad Date: Thu, 10 Aug 2023 10:39:45 +0200 Subject: [PATCH] [8.9] [Synthetics] Fix 404 not found monitor view (#163501) (#163534) # Backport This will backport the following commits from `main` to `8.9`: - [[Synthetics] Fix 404 not found monitor view (#163501)](https://github.com/elastic/kibana/pull/163501) ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) --- .../synthetics/server/routes/monitor_cruds/get_monitor.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/plugins/synthetics/server/routes/monitor_cruds/get_monitor.ts b/x-pack/plugins/synthetics/server/routes/monitor_cruds/get_monitor.ts index 0290e4b3e1e5c..6489d142ea38e 100644 --- a/x-pack/plugins/synthetics/server/routes/monitor_cruds/get_monitor.ts +++ b/x-pack/plugins/synthetics/server/routes/monitor_cruds/get_monitor.ts @@ -56,7 +56,7 @@ export const getSyntheticsMonitorRoute: SyntheticsRestApiRouteFactory = (libs: U const encryptedSavedObjectsClient = encryptedSavedObjects.getClient(); - return libs.requests.getSyntheticsMonitor({ + return await libs.requests.getSyntheticsMonitor({ monitorId, encryptedSavedObjectsClient, savedObjectsClient,