Fix duplicate uploads
Reset orderIds and orderMap Changelog-Fixed: Fix duplicate uploads Signed-off-by: Swift Coder <scoder1747@gmail.com>
This commit is contained in:
committed by
Daniel D’Aquino
parent
033c69b92e
commit
e599ef1ac9
@@ -40,6 +40,10 @@ struct MediaPicker: UIViewControllerRepresentable {
|
|||||||
self.parent.presentationMode.dismiss()
|
self.parent.presentationMode.dismiss()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// When user dismiss the upload confirmation and re-adds again, reset orderIds and orderMap
|
||||||
|
orderIds.removeAll()
|
||||||
|
orderMap.removeAll()
|
||||||
|
|
||||||
for result in results {
|
for result in results {
|
||||||
|
|
||||||
let orderId = result.assetIdentifier ?? UUID().uuidString
|
let orderId = result.assetIdentifier ?? UUID().uuidString
|
||||||
|
|||||||
Reference in New Issue
Block a user