Backport #23862 by @wxiaoguang Caught by @justusbunsi An old bug from #6488 In `pullrequest_targetbranch_change`, the `data` might be empty, because `UpdatePullRequestTarget` may respond `http.StatusNoContent`. And the old code's `$branchTarget.text(data.base_branch);` doesn't make sense, because in the end, the page will be always reloaded. So, just remove the `$branchTarget.text(data.base_branch);`, everything should be fine. Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
This commit is contained in:
parent
16bfe983c2
commit
8abfbe2165
1 changed files with 0 additions and 2 deletions
|
@ -647,8 +647,6 @@ export function initRepoIssueTitleEdit() {
|
|||
$.post(update_url, {
|
||||
_csrf: csrfToken,
|
||||
target_branch: targetBranch
|
||||
}).done((data) => {
|
||||
$branchTarget.text(data.base_branch);
|
||||
}).always(() => {
|
||||
window.location.reload();
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue