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

This commit is contained in:
Saturnino Abril
2017-05-08 21:51:56 +09:00
committed by George Goldberg
parent dc852a71c0
commit 14b9d7784e

View File

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