Skip to content

Commit 005abba

Browse files
bricefclaude
andcommitted
Fix dashboard crash when board list is null
The /boards endpoint can return null instead of an empty array. Guard with fallback to empty array before calling .map(). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent eb89e1d commit 005abba

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

internal/http/dashboard/index.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,8 @@ <h1>TaskFlow Dashboard</h1>
253253
}
254254

255255
async function loadDashboard(boards) {
256+
boards = boards || [];
257+
256258
// Try to load admin stats — gracefully degrade if not admin.
257259
let stats = null;
258260
try {

0 commit comments

Comments
 (0)