[Lens] suppress missing index toasts (#150345)

This commit is contained in:
Drew Tate 2023-02-06 13:53:56 -06:00 committed by GitHub
parent 78947c4c6f
commit ebc1bc5242
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 })
)
))
);