Fix bug with adding photos to cap

This commit is contained in:
Christoph Hagen 2022-06-24 12:04:42 +02:00
parent 566163d1d0
commit fac2e06967
2 changed files with 2 additions and 0 deletions

View File

@ -112,6 +112,7 @@ struct CameraView: View {
private func dismiss() { private func dismiss() {
isPresented = false isPresented = false
self.capId = nil
} }
private func capture() { private func capture() {

View File

@ -319,6 +319,7 @@ struct ContentView: View {
} }
database.save(image, for: cap.id) database.save(image, for: cap.id)
database.image = nil database.image = nil
capIdOfNextPhoto = nil
} }
private func saveNewCap() { private func saveNewCap() {