summaryrefslogtreecommitdiffstats
path: root/webapp/stores
diff options
context:
space:
mode:
authorSaturnino Abril <saturnino.abril@gmail.com>2017-05-08 21:51:56 +0900
committerGeorge Goldberg <george@gberg.me>2017-05-08 13:51:56 +0100
commit14b9d7784ee832603342f25b5eddb538a8676d74 (patch)
tree49d38de9b06f087f1c8b498eaff3e4587339e4a7 /webapp/stores
parentdc852a71c02a3a3757f60f61edae07bdb24eaa3b (diff)
downloadchat-14b9d7784ee832603342f25b5eddb538a8676d74.tar.gz
chat-14b9d7784ee832603342f25b5eddb538a8676d74.tar.bz2
chat-14b9d7784ee832603342f25b5eddb538a8676d74.zip
fix JS error after pinning a post with an empty pinned post list open in RHS (#6345)
Diffstat (limited to 'webapp/stores')
-rw-r--r--webapp/stores/search_store.jsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/webapp/stores/search_store.jsx b/webapp/stores/search_store.jsx
index 2ccf02f94..dd4b97522 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;
}