Correct pipeline loading (#1639)

closes #1583
This commit is contained in:
Anbraten 2023-03-18 06:04:53 +01:00 committed by GitHub
parent 9945e27c01
commit e98601df91
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -15,7 +15,7 @@ export const usePipelineStore = defineStore('pipelines', () => {
function setPipeline(owner: string, repo: string, pipeline: Pipeline) { function setPipeline(owner: string, repo: string, pipeline: Pipeline) {
const _repoSlug = repoSlug(owner, repo); const _repoSlug = repoSlug(owner, repo);
const repoPipelines = pipelines.get(_repoSlug) || new Map(); const repoPipelines = pipelines.get(_repoSlug) || new Map();
repoPipelines.set(pipeline.number, pipeline); repoPipelines.set(pipeline.number, { ...(repoPipelines.get(pipeline.number) || {}), ...pipeline });
pipelines.set(_repoSlug, repoPipelines); pipelines.set(_repoSlug, repoPipelines);
} }