fix: owner allow nil

This commit is contained in:
yystopf 2022-01-20 09:29:26 +08:00
parent 099fc52e00
commit 1c7e414aa4
1 changed files with 1 additions and 1 deletions

View File

@ -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