fix crash when updating an existing entry

code clean up
This commit is contained in:
Trey t
2022-03-03 09:45:46 -06:00
parent 746337b6a2
commit 348229fe60
7 changed files with 20 additions and 52 deletions

View File

@@ -23,13 +23,7 @@ extension PersistenceController {
newItem.canDelete = true
newItem.entryType = Int16(entryType.rawValue)
do {
try viewContext.save()
runDataListeners()
} catch {
let nsError = error as NSError
fatalError("Unresolved error \(nsError), \(nsError.userInfo)")
}
saveAndRunDataListerners()
}
func fillInMissingDates() {