fix JS error after pinning a post with an empty pinned post list open in RHS (#6345)

Этот коммит содержится в:
Saturnino Abril
2017-05-08 21:51:56 +09:00
коммит произвёл 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;
}