From 6fd2194bb39ff14b064b3a961533ac2608ab1933 Mon Sep 17 00:00:00 2001 From: Nabarun Gogoi Date: Thu, 24 Oct 2024 19:33:54 +0530 Subject: [PATCH] Handle deployer record without name set --- packages/backend/src/service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/backend/src/service.ts b/packages/backend/src/service.ts index bcd7e4b8..028b662b 100644 --- a/packages/backend/src/service.ts +++ b/packages/backend/src/service.ts @@ -1348,7 +1348,7 @@ export class Service { const deployers: Deployer[] = []; for (const record of deployerRecords) { - if (record.names.length > 0) { + if (record.names && record.names.length > 0) { const deployerId = record.id; const deployerLrn = record.names[0]; const deployerApiUrl = record.attributes.apiUrl;