Skip to content

Commit

Permalink
Fix fallback image selection
Browse files Browse the repository at this point in the history
  • Loading branch information
carlobeltrame committed Oct 19, 2023
1 parent 4de0f79 commit 9a146f5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def path_for(key)
end

def default_image
org = model.tenant_type.presence || 'organization'
org = model.organization&.tenant_type&.presence || 'organization'
"#{org}-default-image.png"
end
end
Expand Down

0 comments on commit 9a146f5

Please sign in to comment.