We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0f80721 commit 5fb92b2Copy full SHA for 5fb92b2
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