From ace45ae0dd9235d8d2a5056f8061bb75dd8449f8 Mon Sep 17 00:00:00 2001 From: enahum Date: Mon, 2 Oct 2017 15:27:38 -0300 Subject: [PATCH] RN-362 Do not crash when leaving channels (#980) --- app/screens/channel/channel_post_list/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/screens/channel/channel_post_list/index.js b/app/screens/channel/channel_post_list/index.js index 1536cbcc0..48233586d 100644 --- a/app/screens/channel/channel_post_list/index.js +++ b/app/screens/channel/channel_post_list/index.js @@ -41,7 +41,7 @@ function makeMapStateToProps() { channelRefreshingFailed = false; } - const channel = getChannel(state, {id: channelId}); + const channel = getChannel(state, {id: channelId}) || {}; return { channelId,