Fix javascript error when getting a nottification about a reply in a channel not loaded (#3518)
Этот коммит содержится в:
коммит произвёл
Christopher Speller
родитель
c1624af6d6
Коммит
df33348704
@@ -92,7 +92,12 @@ class PostStoreClass extends EventEmitter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
getPost(channelId, postId) {
|
getPost(channelId, postId) {
|
||||||
const posts = this.postsInfo[channelId].postList;
|
const postInfo = this.postsInfo[channelId];
|
||||||
|
if (postInfo == null) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
const posts = postInfo.postList;
|
||||||
let post = null;
|
let post = null;
|
||||||
|
|
||||||
if (posts.posts.hasOwnProperty(postId)) {
|
if (posts.posts.hasOwnProperty(postId)) {
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user