Skip to content

Commit 5f71427

Browse files
authored
Merge pull request #3095 from andrewbaldwin44/task/history-fallback
Webui: Add history fallback
2 parents 0f80721 + 5fb92b2 commit 5f71427

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)