RED-9578: filter files without warnings.

This commit is contained in:
Nicoleta Panaghiu 2024-09-30 14:10:10 +03:00
parent cdf39fd838
commit b989da3f05

View File

@ -119,7 +119,9 @@ export class BulkActionsService {
return;
}
const fileWarnings = approvalResponse.map(response => ({ fileId: response.fileId, fileWarnings: response.fileWarnings }));
const fileWarnings = approvalResponse
.filter(response => response.hasWarnings)
.map(response => ({ fileId: response.fileId, fileWarnings: response.fileWarnings }));
this._dialogService.openDialog(
'confirm',
{