From 8ada284f6f507826bf1d1803530133000a850b20 Mon Sep 17 00:00:00 2001 From: Harrison Healey Date: Fri, 13 Jul 2018 16:23:23 -0400 Subject: [PATCH] MM-11323 Added defensive code in LongPost makeMapStateToProps (#1923) --- app/screens/long_post/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/screens/long_post/index.js b/app/screens/long_post/index.js index ea8d429ef..2040d9a72 100644 --- a/app/screens/long_post/index.js +++ b/app/screens/long_post/index.js @@ -22,9 +22,9 @@ function makeMapStateToProps() { return { channelName: channel ? channel.display_name : '', - hasReactions: post.has_reactions, + hasReactions: post ? post.has_reactions : false, inThreadView: Boolean(state.entities.posts.selectedPostId), - fileIds: post.file_ids, + fileIds: post ? post.file_ids : false, theme: getTheme(state), }; };