mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
Fix JS error when receiving reply during channel switch (#5582)
This commit is contained in:
committed by
Christopher Speller
parent
2e911b77c3
commit
e739a91c94
@@ -99,11 +99,11 @@ class PostStoreClass extends EventEmitter {
|
||||
return null;
|
||||
}
|
||||
|
||||
const posts = postInfo.postList;
|
||||
const postList = postInfo.postList;
|
||||
let post = null;
|
||||
|
||||
if (posts.posts.hasOwnProperty(postId)) {
|
||||
post = posts.posts[postId];
|
||||
if (postList && postList.posts && postList.posts.hasOwnProperty(postId)) {
|
||||
post = postList.posts[postId];
|
||||
}
|
||||
|
||||
return post;
|
||||
|
||||
Reference in New Issue
Block a user