RED-3571
This commit is contained in:
parent
207e2e09fe
commit
f229ca0f7e
@ -69,7 +69,7 @@ export class ScreenHeaderComponent implements OnInit {
|
|||||||
const fileName = this.dossier.dossierName + '.export.csv';
|
const fileName = this.dossier.dossierName + '.export.csv';
|
||||||
const mapper = (file?: IFile) => ({
|
const mapper = (file?: IFile) => ({
|
||||||
...file,
|
...file,
|
||||||
assignee: this._userService.getNameForId(file.assignee),
|
assignee: this._userService.getNameForId(file.assignee) || '-',
|
||||||
primaryAttribute: this._primaryFileAttributeService.getPrimaryFileAttributeValue(file, this.dossier.dossierTemplateId),
|
primaryAttribute: this._primaryFileAttributeService.getPrimaryFileAttributeValue(file, this.dossier.dossierTemplateId),
|
||||||
});
|
});
|
||||||
const fileFields = [
|
const fileFields = [
|
||||||
|
|||||||
@ -125,6 +125,9 @@ export class UserService extends EntitiesService<User, IUser> {
|
|||||||
if (id?.toLowerCase() === 'system') {
|
if (id?.toLowerCase() === 'system') {
|
||||||
return new User({ username: 'System' }, [], 'system');
|
return new User({ username: 'System' }, [], 'system');
|
||||||
}
|
}
|
||||||
|
if (!id) {
|
||||||
|
return undefined;
|
||||||
|
}
|
||||||
return super.find(id) || new User({ username: 'Deleted User' }, [], 'deleted');
|
return super.find(id) || new User({ username: 'Deleted User' }, [], 'deleted');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user