Skip to content

Commit 4a56bf8

Browse files
committed
quick 500 fix
1 parent 99edb8d commit 4a56bf8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/controllers/basil_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def index
1414
return raise "Invalid content type: #{params[:content_type]}"
1515
end
1616

17-
@content = @current_user_content[@content_type].sort_by(&:name)
17+
@content = @current_user_content.fetch(@content_type, []).sort_by(&:name)
1818
end
1919

2020
@generated_images_count = current_user.basil_commissions.with_deleted.count

0 commit comments

Comments
 (0)