Bring back passing custom ID for index pattern SO

This commit is contained in:
Jen Huang 2021-03-11 17:30:20 -08:00
parent f5e3e06f7c
commit af0fb0eaa8

View file

@ -184,6 +184,7 @@ export const createIndexPattern = (indexPatternType: string, fields: Fields) =>
const { indexPatternFields, fieldFormatMap } = createIndexPatternFields(fields);
return {
id: `${indexPatternType}-*`,
title: `${indexPatternType}-*`,
timeFieldName: '@timestamp',
fields: indexPatternFields.reduce((acc, field) => {