can delete any entry and it will fill with a missing entry

can update any entry
This commit is contained in:
Trey t
2022-01-23 13:39:08 -06:00
parent a0a7c16c96
commit 71ad97b185
2 changed files with 11 additions and 11 deletions

View File

@@ -105,7 +105,9 @@ class ContentModeViewModel: ObservableObject {
entriesToDelete.append(obj)
}
entriesToDelete.forEach({ entry in
let entryDate = entry.forDate!
PersistenceController.shared.viewContext.delete(entry)
self.add(mood: .missing, forDate: entryDate)
})
}