From 8bed7aee67a077c917d16cae307c710e43725e71 Mon Sep 17 00:00:00 2001 From: Shahzad Date: Thu, 7 May 2020 10:30:28 +0200 Subject: [PATCH] [Uptime] Fix monitor list result runtime type, ip can be null (#65532) --- x-pack/plugins/uptime/common/runtime_types/monitor/state.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/plugins/uptime/common/runtime_types/monitor/state.ts b/x-pack/plugins/uptime/common/runtime_types/monitor/state.ts index 90aa692f89a42..b3c39e5180adf 100644 --- a/x-pack/plugins/uptime/common/runtime_types/monitor/state.ts +++ b/x-pack/plugins/uptime/common/runtime_types/monitor/state.ts @@ -9,7 +9,7 @@ import * as t from 'io-ts'; export const CheckMonitorType = t.intersection([ t.partial({ name: t.string, - ip: t.union([t.array(t.string), t.string]), + ip: t.union([t.array(t.union([t.string, t.null])), t.string, t.null]), }), t.type({ status: t.string,