Skip to content

Commit b2fe6c3

Browse files
committed
Added a non null check when accessing the object properties and the message refactoring.
1 parent 5dfc14d commit b2fe6c3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/app/item-page/simple/field-components/preview-section/file-description/file-description.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,6 @@ export class FileDescriptionComponent implements OnInit {
6666

6767
hasNoPreview() {
6868
// this.fileInput.fileInfo.length === 0 means that the file has no preview
69-
return this.fileInput.fileInfo.length === 0;
69+
return this.fileInput?.fileInfo?.length === 0;
7070
}
7171
}

src/assets/i18n/cs.json5

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3383,7 +3383,7 @@
33833383
// "item.preview.loading-files": "Loading files... This may take a few seconds as file previews are being generated. If the process takes too long, please contact the system administrator",
33843384
"item.preview.loading-files": "Načítání souborů... Může to trvat několik sekund, protože se generují náhledy souborů. Pokud proces trvá příliš dlouho, kontaktujte prosím správce systému",
33853385
// "item.preview.no-preview": "The file preview has not been generated yet. Please try again later or contact the system administrator",
3386-
"item.preview.no-preview": "Náhled souboru ještě nebyl vygenerován. Zkuste to prosím znovu později nebo kontaktujte správce systému",
3386+
"item.preview.no-preview": "Náhled souboru zatím nebyl vygenerován. Zkuste to prosím znovu později, nebo kontaktujte správce systému",
33873387
// "item.refbox.modal.copy.instruction": ["Press", "ctrl + c", "to copy"],
33883388
"item.refbox.modal.copy.instruction": ["Stiskněte", "ctrl + c", "pro kopírování"],
33893389
// "item.refbox.modal.submit": "Ok",

0 commit comments

Comments
 (0)