From b484f3ef477f50d3c702d61ea0d999d2299ce11d Mon Sep 17 00:00:00 2001 From: Kerry Gallagher Date: Mon, 24 Oct 2022 12:12:17 +0100 Subject: [PATCH] Add "type" property rather than use a "real" data view --- x-pack/plugins/infra/public/hooks/use_log_view.mock.ts | 1 + x-pack/plugins/infra/public/hooks/use_log_view.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/x-pack/plugins/infra/public/hooks/use_log_view.mock.ts b/x-pack/plugins/infra/public/hooks/use_log_view.mock.ts index daebfb82b4564..f9f3007e814fd 100644 --- a/x-pack/plugins/infra/public/hooks/use_log_view.mock.ts +++ b/x-pack/plugins/infra/public/hooks/use_log_view.mock.ts @@ -20,6 +20,7 @@ export const createUninitializedUseLogViewMock = derivedDataView: { fields: [], title: 'unknown', + type: 'title', }, hasFailedLoading: false, hasFailedLoadingLogView: false, diff --git a/x-pack/plugins/infra/public/hooks/use_log_view.ts b/x-pack/plugins/infra/public/hooks/use_log_view.ts index b1b8bb6e33cc9..1a031b31f7dff 100644 --- a/x-pack/plugins/infra/public/hooks/use_log_view.ts +++ b/x-pack/plugins/infra/public/hooks/use_log_view.ts @@ -67,6 +67,7 @@ export const useLogView = ({ () => ({ fields: resolvedLogView?.fields ?? [], title: resolvedLogView?.indices ?? 'unknown', + type: 'title', }), [resolvedLogView] );