fix crash when updating an existing entry
code clean up
This commit is contained in:
@@ -75,8 +75,7 @@ extension PersistenceController {
|
||||
newItem.weekDay = Int16(Calendar.current.component(.weekday, from: date))
|
||||
}
|
||||
|
||||
try viewContext.save()
|
||||
runDataListeners()
|
||||
saveAndRunDataListerners()
|
||||
} catch {
|
||||
// Replace this implementation with code to handle the error appropriately.
|
||||
// fatalError() causes the application to generate a crash log and terminate. You should not use this function in a shipping application, although it may be useful during development.
|
||||
|
||||
Reference in New Issue
Block a user