This commit is contained in:
Adina Țeudan 2022-03-08 12:46:39 +02:00
parent 207e2e09fe
commit f229ca0f7e
2 changed files with 4 additions and 1 deletions

View File

@ -69,7 +69,7 @@ export class ScreenHeaderComponent implements OnInit {
const fileName = this.dossier.dossierName + '.export.csv';
const mapper = (file?: IFile) => ({
...file,
assignee: this._userService.getNameForId(file.assignee),
assignee: this._userService.getNameForId(file.assignee) || '-',
primaryAttribute: this._primaryFileAttributeService.getPrimaryFileAttributeValue(file, this.dossier.dossierTemplateId),
});
const fileFields = [

View File

@ -125,6 +125,9 @@ export class UserService extends EntitiesService<User, IUser> {
if (id?.toLowerCase() === 'system') {
return new User({ username: 'System' }, [], 'system');
}
if (!id) {
return undefined;
}
return super.find(id) || new User({ username: 'Deleted User' }, [], 'deleted');
}
}