Fix group parsing in the guest model
This commit is contained in:
parent
37360264ea
commit
be73e7018a
@ -28,7 +28,7 @@ export class Guest implements Entity {
|
||||
|
||||
export class GuestSerializer implements Serializable<Guest> {
|
||||
fromJson(data: any): Guest {
|
||||
return new Guest(data.id, data.name, data.group_name, data.group_id, data.color, data.status, data.children);
|
||||
return new Guest(data.id, data.name, data.group?.name, data.group?.id, data.color, data.status, data.children);
|
||||
}
|
||||
|
||||
toJson(guest: Guest): string {
|
||||
|
Loading…
x
Reference in New Issue
Block a user