mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
fix JS error after pinning a post with an empty pinned post list open in RHS (#6345)
This commit is contained in:
committed by
George Goldberg
parent
dc852a71c0
commit
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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user