Skip to content

Commit

Permalink
Update quickstart for non-optional Codable
Browse files Browse the repository at this point in the history
  • Loading branch information
morganchen12 committed Mar 3, 2022
1 parent 6f941ea commit e3e313d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class RestaurantListViewModel: ObservableObject {
self.restaurants = documents.compactMap { document in
do {
var restaurant = try document.data(as: Restaurant.self)
restaurant?.reference = document.reference
restaurant.reference = document.reference
return restaurant
} catch {
print(error)
Expand Down

0 comments on commit e3e313d

Please sign in to comment.