diff --git a/webapp/stores/search_store.jsx b/webapp/stores/search_store.jsx index 2ccf02f94d..dd4b97522e 100644 --- a/webapp/stores/search_store.jsx +++ b/webapp/stores/search_store.jsx @@ -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; }