Skip to content

Commit a697e09

Browse files
committed
fix
1 parent a3454c1 commit a697e09

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

routers/api/v1/repo/issue_label.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,10 @@ func ReplaceIssueLabels(ctx *context.APIContext) {
244244
return
245245
}
246246

247+
if ctx.Written() {
248+
return
249+
}
250+
247251
if err := issue_service.ReplaceLabels(ctx, issue, ctx.Doer, labels); err != nil {
248252
ctx.Error(http.StatusInternalServerError, "ReplaceLabels", err)
249253
return

0 commit comments

Comments
 (0)