1
0
mirror of https://github.com/woodpecker-ci/woodpecker.git synced 2025-01-29 18:04:15 +02:00

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) {
const _repoSlug = repoSlug(owner, repo);
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);
}