diff --git a/apps/red-ui/src/app/modules/file-preview/dialogs/document-info-dialog/document-info-dialog.component.ts b/apps/red-ui/src/app/modules/file-preview/dialogs/document-info-dialog/document-info-dialog.component.ts index 23f5848e0..642ca91e3 100644 --- a/apps/red-ui/src/app/modules/file-preview/dialogs/document-info-dialog/document-info-dialog.component.ts +++ b/apps/red-ui/src/app/modules/file-preview/dialogs/document-info-dialog/document-info-dialog.component.ts @@ -68,7 +68,7 @@ export class DocumentInfoDialogComponent extends BaseDialogComponent implements const crtValue = formValue[key]; return { ...acc, - [key]: this._isDate(key) ? dayjs(crtValue).format('YYYY-MM-DD') : crtValue, + [key]: this._isDate(key) ? crtValue && dayjs(crtValue).format('YYYY-MM-DD') : crtValue, }; }, {}); }