fix multiple renders
This commit is contained in:
parent
e42214680a
commit
e5788a09c8
|
@ -32,8 +32,11 @@ 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
|
||||
respond_to :json
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue