Handle deployer record without name set
This commit is contained in:
parent
96c00cc371
commit
6fd2194bb3
@ -1348,7 +1348,7 @@ export class Service {
|
|||||||
const deployers: Deployer[] = [];
|
const deployers: Deployer[] = [];
|
||||||
|
|
||||||
for (const record of deployerRecords) {
|
for (const record of deployerRecords) {
|
||||||
if (record.names.length > 0) {
|
if (record.names && record.names.length > 0) {
|
||||||
const deployerId = record.id;
|
const deployerId = record.id;
|
||||||
const deployerLrn = record.names[0];
|
const deployerLrn = record.names[0];
|
||||||
const deployerApiUrl = record.attributes.apiUrl;
|
const deployerApiUrl = record.attributes.apiUrl;
|
||||||
|
Loading…
Reference in New Issue
Block a user