Commit 95200f4
fix: add defensive check for mail_id in download view (#114)
The $getState() function may return a string instead of a model in some
contexts. This fix adds a type check and only renders the download button
when a valid attachment object with mail_id is available.
Fixes #69
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>1 parent 9fbd691 commit 95200f4
1 file changed
Lines changed: 10 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
1 | 7 | | |
2 | 8 | | |
3 | 9 | | |
4 | | - | |
5 | | - | |
6 | | - | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
7 | 13 | | |
8 | 14 | | |
| 15 | + | |
0 commit comments