From 32e293f6ceba206d234e93f1230e47f13458d2b8 Mon Sep 17 00:00:00 2001 From: Lyon <88232613+pikasTech@users.noreply.github.com> Date: Mon, 22 Jun 2026 15:44:41 +0800 Subject: [PATCH] fix: avoid undefined record in issue list renderer (#665) Co-authored-by: Codex --- scripts/src/gh.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/src/gh.ts b/scripts/src/gh.ts index b36bec78..c7b143c9 100644 --- a/scripts/src/gh.ts +++ b/scripts/src/gh.ts @@ -6541,7 +6541,7 @@ function withIssueListRendered(result: GitHubCommandResult): GitHubCommandResult } function renderIssueListTable(result: GitHubCommandResult): string { - const issues = Array.isArray(result.issues) ? result.issues.map((item) => record(item)) : []; + const issues = Array.isArray(result.issues) ? result.issues.map((item) => isRecord(item) ? item : {}) : []; const rows = issues.map((issue) => [ issue.number === undefined ? "-" : `#${ghText(issue.number)}`, ghText(issue.state),