TF-4236 Fix guard delete UI when no handler is provided.

This commit is contained in:
dab246
2026-01-20 16:21:37 +07:00
committed by Dat H. Pham
parent 326f5e46f5
commit 879b18bc45
13 changed files with 29 additions and 23 deletions
@@ -991,9 +991,7 @@ class EmailAPI with HandleSetErrorMixin, MailAPIMixin {
final isUpdated = emailIdsUpdated.every(ids.contains);
if (emailIdsUpdated.isEmpty || !isUpdated) {
for (var id in emailIds) {
throw parseErrorForSetResponse(response, id.id);
}
throw parseErrorForSetResponse(response, emailIds.first.id);
}
}