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

This commit is contained in:
enahum 2017-10-02 15:27:38 -03:00
parent 18fa5c8cd4
commit ace45ae0dd

View file

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