4 Revize d70e45db28 ... 917c329968

Autor SHA1 Zpráva Datum
  Sam Jaffe 917c329968 refactor: generate new UUID whenever calling init() před 2 týdny
  Sam Jaffe 2bc33d4e38 refactor: properly set sortOrder when deserializing před 2 týdny
  Sam Jaffe d70e45db28 refactor: generate new UUID whenever calling init() před 2 týdny
  Sam Jaffe b9254c06b2 refactor: properly set sortOrder when deserializing před 2 týdny
1 změnil soubory, kde provedl 1 přidání a 0 odebrání
  1. 1 0
      Todos/View/ContentView.swift

+ 1 - 0
Todos/View/ContentView.swift

@@ -67,6 +67,7 @@ struct ContentView: View {
   }
 
   private func autosave() {
+    items.forEach({ $0.uuid = UUID() })
     if inPreview {
       // This isn't great, but we shouldn't be running this in a preview
       // environment in the first place, so w/e.