Skip to content

Commit

Permalink
[indexPattern] handle index patterns without fields
Browse files Browse the repository at this point in the history
  • Loading branch information
spalger authored and scampi committed Jun 2, 2016
1 parent 062931a commit 9d70208
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ui/public/index_patterns/_index_pattern.js
Expand Up @@ -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) {
Expand Down

0 comments on commit 9d70208

Please sign in to comment.