Skip to content

Commit

Permalink
Fix(dashboard): editing pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
TimVosch committed May 13, 2024
1 parent 8bd13d2 commit 226fa2d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion services/dashboard/routes/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func getWorkers(ctx context.Context) []api.UserWorker {
}

func getWorkersCursor(ctx context.Context) *string {
value, ok := ctx.Value(ctxWorkers).(*string)
value, ok := ctx.Value(ctxWorkersCursor).(*string)
if !ok {
return nil
}
Expand Down
4 changes: 2 additions & 2 deletions services/dashboard/routes/pipelines.go
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ func (h *PipelinePageHandler) resolvePipeline(next http.Handler) http.Handler {
context.WithValue(
r.Context(),
ctxPipeline,
*pipeline.Data,
pipeline.Data,
),
)
next.ServeHTTP(w, r)
Expand Down Expand Up @@ -461,7 +461,7 @@ func (h *PipelinePageHandler) resolveWorkers(next http.Handler) http.Handler {
ctx = context.WithValue(
ctx,
ctxWorkersCursor,
nextCursor,
&nextCursor,
)
r = r.WithContext(ctx)
next.ServeHTTP(w, r)
Expand Down

0 comments on commit 226fa2d

Please sign in to comment.