fix: avoid undefined record in issue list renderer (#665)
Co-authored-by: Codex <codex@noreply.local>
This commit is contained in:
+1
-1
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user