Fix an error in the default value of List when not logged in
This commit is contained in:
parent
dc87554546
commit
0e257f6264
1 changed files with 1 additions and 0 deletions
|
@ -88,6 +88,7 @@ class InitialStateSerializer < ActiveModel::Serializer
|
||||||
end
|
end
|
||||||
|
|
||||||
def lists
|
def lists
|
||||||
|
store = {}
|
||||||
store = ActiveModelSerializers::SerializableResource.new(object.current_account.owned_lists, each_serializer: REST::ListSerializer) if object.current_account
|
store = ActiveModelSerializers::SerializableResource.new(object.current_account.owned_lists, each_serializer: REST::ListSerializer) if object.current_account
|
||||||
store
|
store
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue