mirror of https://github.com/go-gitea/gitea
Fix JS error when changing PR's target branch (#23862)
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.pull/23858/head^2
parent
aa9c920980
commit
eadda68ded
Loading…
Reference in new issue