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:
1 parent
033c69b92e
commit
e599ef1ac9
1 file changed
+4
@@ -40,6 +40,10 @@ struct MediaPicker: UIViewControllerRepresentable {
|
||||
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 {
|
||||
|
||||
let orderId = result.assetIdentifier ?? UUID().uuidString
|
||||
|
||||
Reference in new issue
Block a user