fix: guard threadEmails.last against empty list #343

Merged
guettlibot merged 1 commits from issue-341-guard-threademails-last into main 2026-06-01 19:47:49 +00:00
1 Commits
Author SHA1 Message Date
Thomas SharedInboxandClaude Sonnet 4.6 dee3c32a5c fix: guard threadEmails.last against empty list
Add an isEmpty check before accessing threadEmails.last to prevent
StateError when emails are deleted between query and access.

Closes #341

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-01 17:49:54 +02:00