From 1c7e414aa4fe0375bde1ee9008b8e1eed7386822 Mon Sep 17 00:00:00 2001 From: yystopf Date: Thu, 20 Jan 2022 09:29:26 +0800 Subject: [PATCH] fix: owner allow nil --- app/views/owners/show.json.jbuilder | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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