Merge pull request 'Fix group parsing in the guest model' (#147) from fix-guest-group-parsing into main
All checks were successful
Playwright Tests / test (push) Has been skipped
Check usage of free licenses / build-static-assets (push) Successful in 19s
Build Nginx-based docker image / build-static-assets (push) Successful in 2m54s

Reviewed-on: #147
This commit is contained in:
bustikiller 2024-12-10 23:17:34 +00:00
commit 6d5e57724c

View File

@ -28,7 +28,7 @@ export class Guest implements Entity {
export class GuestSerializer implements Serializable<Guest> { export class GuestSerializer implements Serializable<Guest> {
fromJson(data: any): 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 { toJson(guest: Guest): string {