From de21706f7d338a003a2451a5024a64937028782d Mon Sep 17 00:00:00 2001 From: Denys Vuika Date: Wed, 25 Feb 2026 17:43:52 +0000 Subject: [PATCH] fix: handle optional error code in file upload error key retrieval - Updated the getFileUploadErrorKey method to accept an optional errorCode parameter, allowing for better handling of undefined or null values. - This change improves the robustness of error message generation in the file uploading list row component. --- .../lib/upload/components/file-uploading-list-row.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/content-services/src/lib/upload/components/file-uploading-list-row.component.ts b/lib/content-services/src/lib/upload/components/file-uploading-list-row.component.ts index 3541f6652d..59b5e22b28 100644 --- a/lib/content-services/src/lib/upload/components/file-uploading-list-row.component.ts +++ b/lib/content-services/src/lib/upload/components/file-uploading-list-row.component.ts @@ -117,7 +117,7 @@ export class FileUploadingListRowComponent { return this.file?.status === FileUploadStatus.Complete && this.isUploadVersion(); } - getFileUploadErrorKey(errorCode: number): string { + getFileUploadErrorKey(errorCode?: number | null): string { return `FILE_UPLOAD.ERRORS.${errorCode || 'GENERIC'}`; } }