From be73e7018a82664da8ee8871ebccf54a15cce1ef Mon Sep 17 00:00:00 2001 From: Manuel Bustillo Date: Wed, 11 Dec 2024 00:16:35 +0100 Subject: [PATCH] Fix group parsing in the guest model --- app/lib/guest.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/lib/guest.tsx b/app/lib/guest.tsx index 215f318..b43edab 100644 --- a/app/lib/guest.tsx +++ b/app/lib/guest.tsx @@ -28,7 +28,7 @@ export class Guest implements Entity { export class GuestSerializer implements Serializable { 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 {