Skip to content

Commit 5fb92b2

Browse files
Add history fallback for webui
1 parent 0f80721 commit 5fb92b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: locust/webui/src/redux/slice/ui.slice.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const initialState = {
3636
stats: [] as ISwarmStat[],
3737
errors: [] as ISwarmError[],
3838
exceptions: [] as ISwarmException[],
39-
charts: swarmTemplateArgs.history?.reduce(updateArraysAtProps, {}) as ICharts,
39+
charts: (swarmTemplateArgs.history || []).reduce(updateArraysAtProps, {}) as ICharts,
4040
ratios: {} as ISwarmRatios,
4141
userCount: 0,
4242
};

0 commit comments

Comments
 (0)