From d6914dcf13e820cd0b1a7c7918db88681bd96ba4 Mon Sep 17 00:00:00 2001 From: Matthias Wilhelm Date: Mon, 28 Sep 2020 15:43:21 +0200 Subject: [PATCH] Remove debug code --- src/plugins/data/common/search/aggs/param_types/field.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/data/common/search/aggs/param_types/field.ts b/src/plugins/data/common/search/aggs/param_types/field.ts index 93e1baaebb308..35e363994430f 100644 --- a/src/plugins/data/common/search/aggs/param_types/field.ts +++ b/src/plugins/data/common/search/aggs/param_types/field.ts @@ -84,7 +84,7 @@ export class FieldParamType extends BaseParamType { } const validField = this.getAvailableFields(aggConfig).find((f: any) => f.name === fieldName); - if (!validField || 1 === 1) { + if (!validField) { throw new Error( i18n.translate( 'data.search.aggs.paramTypes.field.invalidSavedFieldParameterErrorMessage',