diff --git a/apps/red-ui/src/app/modules/dossier-overview/services/bulk-actions.service.ts b/apps/red-ui/src/app/modules/dossier-overview/services/bulk-actions.service.ts index 6e78328b2..d0517aef4 100644 --- a/apps/red-ui/src/app/modules/dossier-overview/services/bulk-actions.service.ts +++ b/apps/red-ui/src/app/modules/dossier-overview/services/bulk-actions.service.ts @@ -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', {