fix JS error after pinning a post with an empty pinned post list open in RHS (#6345)
Этот коммит содержится в:
коммит произвёл
George Goldberg
родитель
dc852a71c0
Коммит
14b9d7784e
@@ -122,7 +122,7 @@ class SearchStoreClass extends EventEmitter {
|
||||
|
||||
togglePinPost(postId, isPinned) {
|
||||
const results = this.getSearchResults();
|
||||
if (results == null) {
|
||||
if (results == null || results.posts == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user