From ebc1bc5242a317ad1b3fa92a80373590580ee3b2 Mon Sep 17 00:00:00 2001 From: Drew Tate Date: Mon, 6 Feb 2023 13:53:56 -0600 Subject: [PATCH] [Lens] suppress missing index toasts (#150345) --- x-pack/plugins/lens/public/data_views_service/loader.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/x-pack/plugins/lens/public/data_views_service/loader.ts b/x-pack/plugins/lens/public/data_views_service/loader.ts index abd8a48815122..bb27eec2076e3 100644 --- a/x-pack/plugins/lens/public/data_views_service/loader.ts +++ b/x-pack/plugins/lens/public/data_views_service/loader.ts @@ -176,7 +176,9 @@ export async function loadIndexPatterns({ } indexPatterns.push( ...(await Promise.all( - Object.values(adHocDataViews || {}).map((spec) => dataViews.create(spec)) + Object.values(adHocDataViews || {}).map((spec) => + dataViews.create({ ...spec, allowNoIndex: true }) + ) )) );