Skip to content

Commit e2d9774

Browse files
committed
fix null labels
1 parent c062f18 commit e2d9774

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

services/convert/convert.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,11 +261,11 @@ func ToActionRunner(ctx context.Context, runner *actions_model.ActionRunner) *ap
261261
}
262262
labels := make([]*api.ActionRunnerLabel, len(runner.AgentLabels))
263263
for i, label := range runner.AgentLabels {
264-
labels = append(labels, &api.ActionRunnerLabel{
264+
labels[i] = &api.ActionRunnerLabel{
265265
ID: int64(i),
266266
Name: label,
267267
Type: "custom",
268-
})
268+
}
269269
}
270270
return &api.ActionRunner{
271271
ID: runner.ID,

0 commit comments

Comments
 (0)