From aa592cfd73c81593c49d4f1fbb71239198f9d62b Mon Sep 17 00:00:00 2001 From: Matthias Wilhelm Date: Wed, 29 May 2019 13:13:52 +0200 Subject: [PATCH] Remove duplicate fields of rollup based index patterns (#37221) (#37307) Rollup fields were were merged twice with other fields, this caused duplicates. Fix of a bug introduced by #28762 --- x-pack/plugins/rollup/server/routes/api/index_patterns.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/plugins/rollup/server/routes/api/index_patterns.js b/x-pack/plugins/rollup/server/routes/api/index_patterns.js index 7f760ac515896..04c313f9b3ba1 100644 --- a/x-pack/plugins/rollup/server/routes/api/index_patterns.js +++ b/x-pack/plugins/rollup/server/routes/api/index_patterns.js @@ -69,7 +69,7 @@ export function registerFieldsForWildcardRoute(server) { const mergedRollupFields = mergeCapabilitiesWithFields(rollupIndexCapabilities, fieldsFromFieldCapsApi, rollupFields); return { - fields: [ ...rollupFields, ...mergedRollupFields ] + fields: mergedRollupFields }; } catch(err) { if (isEsError(err)) {