diff options
author | Saturnino Abril <saturnino.abril@gmail.com> | 2017-05-08 21:51:56 +0900 |
---|---|---|
committer | George Goldberg <george@gberg.me> | 2017-05-08 13:51:56 +0100 |
commit | 14b9d7784ee832603342f25b5eddb538a8676d74 (patch) | |
tree | 49d38de9b06f087f1c8b498eaff3e4587339e4a7 /webapp/stores/search_store.jsx | |
parent | dc852a71c02a3a3757f60f61edae07bdb24eaa3b (diff) | |
download | chat-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/search_store.jsx')
-rw-r--r-- | webapp/stores/search_store.jsx | 2 |
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; } |