We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 99edb8d commit 4a56bf8Copy full SHA for 4a56bf8
app/controllers/basil_controller.rb
@@ -14,7 +14,7 @@ def index
14
return raise "Invalid content type: #{params[:content_type]}"
15
end
16
17
- @content = @current_user_content[@content_type].sort_by(&:name)
+ @content = @current_user_content.fetch(@content_type, []).sort_by(&:name)
18
19
20
@generated_images_count = current_user.basil_commissions.with_deleted.count
0 commit comments