diff --git a/app/views/owners/show.json.jbuilder b/app/views/owners/show.json.jbuilder index db0a8085..82a1c099 100644 --- a/app/views/owners/show.json.jbuilder +++ b/app/views/owners/show.json.jbuilder @@ -1,4 +1,4 @@ -json.type @owner.type +json.type @owner&.type if @owner.is_a?(Organization) json.partial! "organizations/organizations/detail", organization: @owner json.can_create_project @can_create_project