RN-362 Do not crash when leaving channels (#980)

This commit is contained in:
enahum 2017-10-02 15:27:38 -03:00 committed by GitHub
parent 4ef308469d
commit 50369d0c28

View file

@ -41,7 +41,7 @@ function makeMapStateToProps() {
channelRefreshingFailed = false;
}
const channel = getChannel(state, {id: channelId});
const channel = getChannel(state, {id: channelId}) || {};
return {
channelId,