diff --git a/app/views/projects/pull_requests/show.json.jbuilder b/app/views/projects/pull_requests/show.json.jbuilder index 2496d7742..175d46d2e 100644 --- a/app/views/projects/pull_requests/show.json.jbuilder +++ b/app/views/projects/pull_requests/show.json.jbuilder @@ -14,7 +14,7 @@ json.pull_request do json.ref @pull.from_ref json.sha @pull.from_commit.try(:id) json.project do - json.(@pull.from_project, :id, :name) + json.(@pull.from_project, :id, :name) if @pull.from_project.present? json.owner_uname @pull.to_project.owner.uname end end