mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
[indexPattern] handle index patterns without fields
This commit is contained in:
parent
062931a3f4
commit
9d70208f56
1 changed files with 1 additions and 1 deletions
|
@ -310,7 +310,7 @@ export default function IndexPatternFactory(Private, timefilter, Notifier, confi
|
|||
};
|
||||
|
||||
self._fetchFields = function () {
|
||||
const existingFieldsByName = self.fields.byName;
|
||||
const existingFieldsByName = _.get(self, 'fields.byName', {});
|
||||
|
||||
return mapper.getFieldsForIndexPattern(self, true)
|
||||
.then(function (fields) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue