fix multiple renders
This commit is contained in:
parent
e42214680a
commit
e5788a09c8
|
@ -32,9 +32,12 @@ class Api::V1::IssuesController < Api::V1::BaseController
|
|||
end
|
||||
|
||||
def show
|
||||
redirect_to api_v1_project_pull_request_path(@project.id, @issue.serial_id) if @issue.pull_request
|
||||
if @issue.pull_request
|
||||
redirect_to api_v1_project_pull_request_path(@project.id, @issue.serial_id)
|
||||
else
|
||||
respond_to :json
|
||||
end
|
||||
end
|
||||
|
||||
def create
|
||||
@issue.user = current_user
|
||||
|
|
Loading…
Reference in New Issue