fix when cla nil index error

This commit is contained in:
chenjing 2023-06-14 11:22:13 +08:00
parent 04b3351962
commit 0d00fd1744
1 changed files with 3 additions and 4 deletions

View File

@ -1,4 +1,3 @@
json.id @cla.id
json.key @cla.key
json.name @cla.name
json.pr_need @cla.pr_need
if @cla.present?
json.partial! "detail", cla: @cla
end