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.
This commit is contained in:
Denys Vuika
2026-02-25 17:43:52 +00:00
parent d2c2b07676
commit de21706f7d
@@ -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'}`;
}
}