diff --git a/src/lm/tools/displayIssuesTool.ts b/src/lm/tools/displayIssuesTool.ts index 30e102b8f4..782fe73ffe 100644 --- a/src/lm/tools/displayIssuesTool.ts +++ b/src/lm/tools/displayIssuesTool.ts @@ -102,7 +102,7 @@ export class DisplayIssuesTool extends ToolBase { case 'number': return `[${issue[column]}](${issue.url})`; case 'labels': - return issue[column]?.map((label) => label && label.name && label.color ? makeLabel({ name: label.name, color: label.color }) : '').join(', '); + return issue[column]?.map((label) => label?.name && label.color ? makeLabel({ name: label.name, color: label.color }) : '').join(', '); case 'assignees': return issue[column]?.map((assignee) => this.renderUser(assignee)).join(', '); case 'author':