From 95ea9560b56885edec092e177db9944b7e8712ce Mon Sep 17 00:00:00 2001 From: shahzad Date: Thu, 2 Apr 2020 13:59:57 +0200 Subject: [PATCH] update type --- x-pack/legacy/plugins/uptime/public/state/api/ml_anomaly.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/legacy/plugins/uptime/public/state/api/ml_anomaly.ts b/x-pack/legacy/plugins/uptime/public/state/api/ml_anomaly.ts index a5c8eb7e6b66c..1a945512f7cd9 100644 --- a/x-pack/legacy/plugins/uptime/public/state/api/ml_anomaly.ts +++ b/x-pack/legacy/plugins/uptime/public/state/api/ml_anomaly.ts @@ -62,7 +62,7 @@ export const createMLJob = async ({ }; } else { const { error } = jobResponse; - throw new Error(error.msg); + throw new Error(error?.msg); } } else { return null;