Fix delete flashcards
Forgot to save after deleting the object
This commit is contained in:
@@ -69,7 +69,6 @@ Why settle for pricey apps when you can have WordAX? We're here to prove that ef
|
||||
- [x] Implement logic
|
||||
- [ ] Make an apple watch version of the app
|
||||
- [ ] Option to add a hint
|
||||
- [ ] Delete doesn't work
|
||||
- [ ] Add haptic touch
|
||||
|
||||
<p align="right">(<a href="#readme-top">back to top</a>)</p>
|
||||
|
||||
@@ -31,6 +31,11 @@ struct FlashCardListView: View {
|
||||
moc.delete(flashcard)
|
||||
}
|
||||
|
||||
do {
|
||||
try moc.save()
|
||||
} catch {
|
||||
print("Something went wrong while deleting an object")
|
||||
}
|
||||
})
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user