Skip to content

Commit

Permalink
Update src/plugins/telemetry/server/telemetry_collection/get_local_st…
Browse files Browse the repository at this point in the history
…ats.ts


Using native merge without mutating the original object.

Co-authored-by: Alejandro Fernández Haro <[email protected]>
  • Loading branch information
TinaHeiligers and afharo authored Jun 29, 2020
1 parent 345310c commit 4b7e9a1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export const getLocalStats: StatsGetter<{}, TelemetryLocalStats> = async (
clusterInfo,
{
...clusterStats,
nodes: merge(clusterStats.nodes, { usage: nodesUsage }),
nodes: { ...clusterStats.nodes, usage: nodesUsage },
},
kibana,
context
Expand Down

0 comments on commit 4b7e9a1

Please sign in to comment.