Commit 2c6d6f1
committed
[FIX] mail: no crash on test test_04_meeting_view_tour avatarUrl
Before this commit, test `test_04_meeting_view_tour` could crash
non-deterministically with the following error:
```
OwlError: An error occured in the owl lifecycle (see this Error's "cause" property)
Caused by: TypeError: Cannot read properties of undefined (reading 'avatarUrl')
at DiscussSidebarCallParticipants.template
```
This happens because the template was reading a deep field in a JS
relation without guard in `rtc_session.channel_member_id.avatarUrl`.
When a rtc_session is known in client code, the `channel_member_id`
is not necessarily known, therefore code should guard it unless
context is explicit that this is known.
This commit adds optional guarding in the template to take into
account possibility to know rtc session without the related channel
member id.
Fixes runbot-error-233597
closes odoo#233232
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>1 parent ce13cf7 commit 2c6d6f1
File tree
1 file changed
+3
-3
lines changed- addons/mail/static/src/discuss/call/public_web/discuss_app/sidebar
1 file changed
+3
-3
lines changedLines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
| 70 | + | |
71 | 71 | | |
72 | | - | |
73 | | - | |
| 72 | + | |
| 73 | + | |
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| |||
0 commit comments