Skip to content

Commit 575699e

Browse files
Fix action-queue single-item object handling in dashboard
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent caf4205 commit 575699e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

index.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,9 @@ <h2>Action Queue</h2>
159159
</table>`;
160160
document.getElementById('packages-table').innerHTML = pkgHtml;
161161

162-
// Queue — action-queue.json uses array at root or .items
163-
const items = Array.isArray(queue) ? queue : (queue && queue.items ? queue.items : []);
162+
// Queue — action-queue.json: items can be object or array
163+
const rawItems = queue && queue.items ? queue.items : queue;
164+
const items = Array.isArray(rawItems) ? rawItems : (rawItems && typeof rawItems === 'object' && rawItems.pr_number ? [rawItems] : []);
164165
if (items.length) {
165166
const qHtml = `<table>
166167
<thead><tr><th>Repo</th><th>PR</th><th>Priority</th><th>Days Open</th><th>Action</th></tr></thead>

0 commit comments

Comments
 (0)