From 28e4e23413570ad62c8ee4854d44180a308dc65f Mon Sep 17 00:00:00 2001 From: Ying Mao Date: Tue, 19 Jan 2021 08:49:07 -0500 Subject: [PATCH] PR fixes --- x-pack/plugins/actions/server/actions_config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/plugins/actions/server/actions_config.ts b/x-pack/plugins/actions/server/actions_config.ts index ebac80e70f4a8..b16911b1d1ca7 100644 --- a/x-pack/plugins/actions/server/actions_config.ts +++ b/x-pack/plugins/actions/server/actions_config.ts @@ -59,7 +59,7 @@ function disabledActionTypeErrorMessage(actionType: string) { function isAllowed({ allowedHosts }: ActionsConfigType, hostname: string | null): boolean { const allowed = new Set(allowedHosts); if (allowed.has(AllowedHosts.Any)) return true; - if (hostname && allowed.has(hostname)) return true; + if (allowed.has(hostname)) return true; return false; }