We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0f80721 + 5fb92b2 commit 5f71427Copy full SHA for 5f71427
locust/webui/src/redux/slice/ui.slice.ts
@@ -36,7 +36,7 @@ const initialState = {
36
stats: [] as ISwarmStat[],
37
errors: [] as ISwarmError[],
38
exceptions: [] as ISwarmException[],
39
- charts: swarmTemplateArgs.history?.reduce(updateArraysAtProps, {}) as ICharts,
+ charts: (swarmTemplateArgs.history || []).reduce(updateArraysAtProps, {}) as ICharts,
40
ratios: {} as ISwarmRatios,
41
userCount: 0,
42
};
0 commit comments