From 6305fd597d9fa9c83994b3cfb12e917214739c8b Mon Sep 17 00:00:00 2001 From: Miguel Alatzar Date: Fri, 7 Aug 2020 07:28:19 -0700 Subject: [PATCH] Check for undefined channel (#4650) --- app/components/post_draft/draft_input/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/components/post_draft/draft_input/index.js b/app/components/post_draft/draft_input/index.js index def9f4d1a..ca2d76d76 100644 --- a/app/components/post_draft/draft_input/index.js +++ b/app/components/post_draft/draft_input/index.js @@ -53,7 +53,7 @@ export function mapStateToProps(state, ownProps) { ); } - if (isMinimumServerVersion(state.entities.general.serverVersion, 5, 24) && license && license.IsLicensed === 'true') { + if (channel && isMinimumServerVersion(state.entities.general.serverVersion, 5, 24) && license && license.IsLicensed === 'true') { useGroupMentions = haveIChannelPermission( state, {