Skip to content

Commit

Permalink
[Exploatory view] Fix duplicate breakdowns (#117304)
Browse files Browse the repository at this point in the history
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
  • Loading branch information
shahzad31 and kibanamachine committed Nov 10, 2021
1 parent a861170 commit 89f9c8f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export function SeriesActions({ seriesId, series, seriesConfig, onEditClick }: P
if (allSeries.find(({ name }) => name === copySeriesId)) {
copySeriesId = copySeriesId + allSeries.length;
}
setSeries(allSeries.length, { ...series, name: copySeriesId });
setSeries(allSeries.length, { ...series, name: copySeriesId, breakdown: undefined });
};

const toggleSeries = () => {
Expand Down

0 comments on commit 89f9c8f

Please sign in to comment.