Commit 17c9e88c authored by Phil Hughes's avatar Phil Hughes

fixed jobs getting overwritten incorrectly

parent 9797905b
...@@ -54,7 +54,7 @@ export default { ...@@ -54,7 +54,7 @@ export default {
state.stages = state.stages.map(stage => ({ state.stages = state.stages.map(stage => ({
...stage, ...stage,
isLoading: stage.id === id ? false : stage.isLoading, isLoading: stage.id === id ? false : stage.isLoading,
jobs: data.latest_statuses.map(normalizeJob), jobs: stage.id === id ? data.latest_statuses.map(normalizeJob) : stage.jobs,
})); }));
}, },
[types.TOGGLE_STAGE_COLLAPSE](state, id) { [types.TOGGLE_STAGE_COLLAPSE](state, id) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment