Skip to content

Commit

Permalink
Remove duplicate fields of rollup based index patterns (#37221) (#37308)
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 authored May 29, 2019
1 parent bbbb33f commit 4d69339
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 4d69339

Please sign in to comment.