quick 500 fix

This commit is contained in:
Andrew Brown 2023-04-15 12:48:36 -07:00
parent 99edb8de46
commit 4a56bf8ba6

View File

@ -14,7 +14,7 @@ class BasilController < ApplicationController
return raise "Invalid content type: #{params[:content_type]}"
end
@content = @current_user_content[@content_type].sort_by(&:name)
@content = @current_user_content.fetch(@content_type, []).sort_by(&:name)
end
@generated_images_count = current_user.basil_commissions.with_deleted.count