diff --git a/src/legacy/core_plugins/data/public/index_patterns/fields/field_list.ts b/src/legacy/core_plugins/data/public/index_patterns/fields/field_list.ts index cb7472476f575..da1599983a56a 100644 --- a/src/legacy/core_plugins/data/public/index_patterns/fields/field_list.ts +++ b/src/legacy/core_plugins/data/public/index_patterns/fields/field_list.ts @@ -37,7 +37,12 @@ export class FieldList extends Array implements FieldListInterface { private indexPattern: IndexPattern; private shortDotsEnable: boolean; private notifications: NotificationsSetup; - constructor(indexPattern: IndexPattern, specs: FieldSpec[] = [], shortDotsEnable = false, notifications: NotificationsSetup) { + constructor( + indexPattern: IndexPattern, + specs: FieldSpec[] = [], + shortDotsEnable = false, + notifications: NotificationsSetup + ) { super(); this.indexPattern = indexPattern; this.shortDotsEnable = shortDotsEnable; diff --git a/src/legacy/core_plugins/data/public/index_patterns/index_patterns/index_pattern.ts b/src/legacy/core_plugins/data/public/index_patterns/index_patterns/index_pattern.ts index c4747dac88510..f851ad5118bef 100644 --- a/src/legacy/core_plugins/data/public/index_patterns/index_patterns/index_pattern.ts +++ b/src/legacy/core_plugins/data/public/index_patterns/index_patterns/index_pattern.ts @@ -279,18 +279,20 @@ export class IndexPattern implements StaticIndexPattern { } this.fields.add( - new Field(this, { - name, - script, - fieldType, - scripted: true, - lang, - aggregatable: true, - filterable: true, - searchable: true, - }, - false, - this.notifications + new Field( + this, + { + name, + script, + fieldType, + scripted: true, + lang, + aggregatable: true, + filterable: true, + searchable: true, + }, + false, + this.notifications ) );