Commit 9092333
committed
Handle missing user name in TicketNotesItem to prevent rendering errors
- Use optional chaining for `note.user?.name` in Avatar and text
- Default alt text to empty string if user name is missing
- Show "---" if user name is not available in secondary text
- Prevents runtime errors when `note.user` is undefined
- Improves UI robustness for incomplete note data
- Changes only affect `frontend/src/components/TicketNotesItem/index.js`1 parent 41718e8 commit 9092333
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| |||
0 commit comments