FIX: Prevent error when poster isn't present in message notification item (#24776)

This commit is contained in:
Mark VanLandingham 2023-12-07 13:21:45 -06:00 committed by GitHub
parent 9de0626356
commit ddf3c571cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}); });
} }