Fix group parsing in the guest model #147

Merged
bustikiller merged 1 commits from fix-guest-group-parsing into main 2024-12-10 23:17:35 +00:00

View File

@ -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 {