mirror of
https://github.com/discourse/discourse.git
synced 2025-05-19 22:33:15 +08:00
FIX: Prevent error when poster isn't present in message notification item (#24776)
This commit is contained in:
parent
9de0626356
commit
ddf3c571cf
@ -83,7 +83,7 @@ export default class UserMenuMessagesList extends UserMenuNotificationsList {
|
|||||||
topics.forEach((t) => {
|
topics.forEach((t) => {
|
||||||
t.last_poster_avatar_template = usersById.get(
|
t.last_poster_avatar_template = usersById.get(
|
||||||
t.lastPoster.user_id
|
t.lastPoster.user_id
|
||||||
).avatar_template;
|
)?.avatar_template;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user