Fix an error in the default value of List when not logged in

This commit is contained in:
noellabo 2022-02-06 02:33:41 +09:00
parent dc87554546
commit 0e257f6264

View file

@ -88,6 +88,7 @@ class InitialStateSerializer < ActiveModel::Serializer
end
def lists
store = {}
store = ActiveModelSerializers::SerializableResource.new(object.current_account.owned_lists, each_serializer: REST::ListSerializer) if object.current_account
store
end