Skip to content

Commit

Permalink
Remove duplicate fields of rollup based index patterns (#37221) (#37307)
Browse files Browse the repository at this point in the history
Rollup fields were were merged twice with other fields, this caused duplicates. Fix of a bug introduced by #28762
  • Loading branch information
kertal committed May 29, 2019
1 parent e7184b5 commit aa592cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x-pack/plugins/rollup/server/routes/api/index_patterns.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit aa592cf

Please sign in to comment.