Fix JS error when receiving reply during channel switch (#5582)

Этот коммит содержится в:
Joram Wilander
2017-03-03 12:25:32 -05:00
коммит произвёл Christopher Speller
родитель 2e911b77c3
Коммит e739a91c94
4 изменённых файлов: 22 добавлений и 4 удалений

Просмотреть файл

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