From 78bba50b4ae11b38e2f17ef64c1d4fa8ef747d5a Mon Sep 17 00:00:00 2001 From: Matthias Wilhelm Date: Tue, 28 May 2019 15:07:35 +0200 Subject: [PATCH] Remove merge of rollupFields with already mergedRollupFields since the fields are already part of the merged version this is the cause for displaying duplicates in the index pattern --- 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)) {