Check for undefined channel (#4650)

This commit is contained in:
Miguel Alatzar 2020-08-07 07:28:19 -07:00 committed by GitHub
parent 581e6ba12a
commit 6305fd597d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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,
{