mirror of
https://github.com/IT4Change/gradido.git
synced 2026-03-01 12:44:43 +00:00
correct toJSON in case of undefined UserContact
This commit is contained in:
parent
d00da185d7
commit
bb69008f5f
@ -17,6 +17,8 @@ export class UserContactLoggingView extends AbstractLoggingView {
|
||||
|
||||
public toJSON(): any {
|
||||
return {
|
||||
self: this.self ?
|
||||
{
|
||||
id: this.self.id,
|
||||
type: this.self.type,
|
||||
user:
|
||||
@ -32,6 +34,7 @@ export class UserContactLoggingView extends AbstractLoggingView {
|
||||
createdAt: this.dateToString(this.self.createdAt),
|
||||
updatedAt: this.dateToString(this.self.updatedAt),
|
||||
deletedAt: this.dateToString(this.self.deletedAt),
|
||||
} : undefined
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user