fix: owner allow nil
This commit is contained in:
parent
099fc52e00
commit
1c7e414aa4
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue