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() {
isPresented = false
self.capId = nil
}
private func capture() {

View File

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