Fix bug with adding photos to cap
This commit is contained in:
parent
566163d1d0
commit
fac2e06967
@ -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() {
|
||||||
|
@ -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() {
|
||||||
|
Loading…
Reference in New Issue
Block a user