Skip to content

Commit

Permalink
Don't fail on invalid input for now.
Browse files Browse the repository at this point in the history
  • Loading branch information
skh committed Mar 18, 2020
1 parent b5a3ad7 commit 011b2c6
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,11 @@ function dedupFields(fields: Fields): Fields {
found.fields = dedupFields(found.fields.concat(field.fields));
} else {
// only 'group' fields can be merged in this way
throw new Error(
"Can't merge fields " + JSON.stringify(found) + ' and ' + JSON.stringify(field)
);
// XXX: don't abort on error for now
// see discussion in https://github.com/elastic/kibana/pull/59894
// throw new Error(
// "Can't merge fields " + JSON.stringify(found) + ' and ' + JSON.stringify(field)
// );
}
} else {
if (field.fields) {
Expand Down

0 comments on commit 011b2c6

Please sign in to comment.