Skip to content

Commit 2ae440a

Browse files
KyleAMathewsclaude
andcommitted
fix: handle empty countData array
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 7b01d82 commit 2ae440a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/react/linearlarge/src/components/IssueList.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export function IssueList() {
2828
[filterState]
2929
)
3030
const { data: countData } = useLiveQuery(issueCountQuery)
31-
const totalCount = countData[0].count
31+
const totalCount = countData[0]?.count
3232

3333
const {
3434
data: issues,

0 commit comments

Comments
 (0)