diff options
Diffstat (limited to 'admin/WebConsole3/frontend/src/app/serializer/client.serializer.ts')
-rw-r--r-- | admin/WebConsole3/frontend/src/app/serializer/client.serializer.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/admin/WebConsole3/frontend/src/app/serializer/client.serializer.ts b/admin/WebConsole3/frontend/src/app/serializer/client.serializer.ts index 3b893ada..efce4380 100644 --- a/admin/WebConsole3/frontend/src/app/serializer/client.serializer.ts +++ b/admin/WebConsole3/frontend/src/app/serializer/client.serializer.ts @@ -7,7 +7,7 @@ export class ClientSerializer extends Serializer { // @ts-ignore client.repository = (client.repository && typeof client.repository === 'object') ? client.repository.id : client.repository; // @ts-ignore - client.hardwareProfile = (client.hardwareProfile) ? client.hardwareProfile.id : null; + client.hardwareProfile = (client.hardwareProfile && typeof client.hardwareProfile === 'object') ? client.hardwareProfile.id : client.hardwareProfile; // @ts-ignore client.netboot = (client.netboot && typeof client.netboot === 'object') ? client.netboot.id : client.netboot; return super.toJson(client); |