From dfe9165bc90e98dbea8727289016fdcd52e3af3c Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Sat, 10 Aug 2024 01:17:31 +0800 Subject: [PATCH] :bug: Bug fixes on upload attachment --- lib/providers/attachment_uploader.dart | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/providers/attachment_uploader.dart b/lib/providers/attachment_uploader.dart index 7e0a362..f02f3d0 100644 --- a/lib/providers/attachment_uploader.dart +++ b/lib/providers/attachment_uploader.dart @@ -138,9 +138,7 @@ class AttachmentUploaderController extends GetxController { queueOfUpload[idx].isCompleted = true; } - queueOfUpload.value = queueOfUpload - .where((x) => x.error == null && x.isCompleted) - .toList(growable: true); + queueOfUpload.removeWhere((x) => x.error == null); _stopProgressSyncTimer(); _syncProgress();