🐛 Bug fixes on upload attachment

This commit is contained in:
LittleSheep 2024-08-10 01:17:31 +08:00
parent 3d45b54236
commit dfe9165bc9

View File

@ -138,9 +138,7 @@ class AttachmentUploaderController extends GetxController {
queueOfUpload[idx].isCompleted = true; queueOfUpload[idx].isCompleted = true;
} }
queueOfUpload.value = queueOfUpload queueOfUpload.removeWhere((x) => x.error == null);
.where((x) => x.error == null && x.isCompleted)
.toList(growable: true);
_stopProgressSyncTimer(); _stopProgressSyncTimer();
_syncProgress(); _syncProgress();