Skip to content

Commit

Permalink
Use getIndexPattern instead of title property
Browse files Browse the repository at this point in the history
  • Loading branch information
cqliu1 committed Oct 18, 2022
1 parent 52635e7 commit 4ed24f6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion x-pack/plugins/canvas/public/services/kibana/data_views.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ export const dataViewsServiceFactory: DataViewsServiceFactory = ({ startPlugins
getDefaultDataView: async () => {
const dataView = await startPlugins.data.dataViews.getDefaultDataView();

return dataView ? { id: dataView.id, name: dataView.name, title: dataView.title } : undefined;
return dataView
? { id: dataView.id, name: dataView.name, title: dataView.getIndexPattern() }
: undefined;
},
});

0 comments on commit 4ed24f6

Please sign in to comment.