Skip to content

Commit

Permalink
Fix blank rows in Discover page by adding _source field to _mapper.js
Browse files Browse the repository at this point in the history
  • Loading branch information
athana committed Aug 3, 2015
1 parent 4fb8d2a commit da822ee
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/kibana/components/index_patterns/_mapper.js
Expand Up @@ -101,7 +101,7 @@ define(function (require) {
"type": "string"
};

return _.map(resp.data.fields, function (v, k) {
var fieldList = _.map(resp.data.fields, function (v, k) {
v.name = k;
v.analyzed = false;
if (v.schema.indexOf('I') > -1) {
Expand All @@ -111,6 +111,9 @@ define(function (require) {
}
return v;
});

fieldList.push(sourceField);
return fieldList;
});

return Promise.all([promiseFields])
Expand Down

0 comments on commit da822ee

Please sign in to comment.