Skip to content

Commit

Permalink
Add "type" property rather than use a "real" data view
Browse files Browse the repository at this point in the history
  • Loading branch information
Kerry350 committed Oct 24, 2022
1 parent f2ccde9 commit b484f3e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions x-pack/plugins/infra/public/hooks/use_log_view.mock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export const createUninitializedUseLogViewMock =
derivedDataView: {
fields: [],
title: 'unknown',
type: 'title',
},
hasFailedLoading: false,
hasFailedLoadingLogView: false,
Expand Down
1 change: 1 addition & 0 deletions x-pack/plugins/infra/public/hooks/use_log_view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ export const useLogView = ({
() => ({
fields: resolvedLogView?.fields ?? [],
title: resolvedLogView?.indices ?? 'unknown',
type: 'title',
}),
[resolvedLogView]
);
Expand Down

0 comments on commit b484f3e

Please sign in to comment.