mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
parent
004572cab6
commit
5f4816e31c
1 changed files with 1 additions and 2 deletions
|
@ -32,10 +32,9 @@ export function fieldsServiceProvider(callWithRequest) {
|
|||
})
|
||||
.then((fieldCapsResp) => {
|
||||
const aggregatableFields = [];
|
||||
|
||||
fieldNames.forEach((fieldName) => {
|
||||
const fieldInfo = fieldCapsResp.fields[fieldName];
|
||||
const typeKeys = Object.keys(fieldInfo);
|
||||
const typeKeys = (fieldInfo !== undefined ? Object.keys(fieldInfo) : []);
|
||||
if (typeKeys.length > 0) {
|
||||
const fieldType = typeKeys[0];
|
||||
const isFieldAggregatable = fieldInfo[fieldType].aggregatable;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue