mirror of
https://github.com/indentlabs/notebook.git
synced 2025-10-26 11:19:22 +00:00
quick 500 fix
This commit is contained in:
parent
99edb8de46
commit
4a56bf8ba6
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user