Fix JS error when receiving reply during channel switch (#5582)
Этот коммит содержится в:
коммит произвёл
Christopher Speller
родитель
2e911b77c3
Коммит
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;
|
||||
|
||||
Ссылка в новой задаче
Block a user