diff --git a/app/components/channel_drawer/channels_list/filtered_list/filtered_list.js b/app/components/channel_drawer/channels_list/filtered_list/filtered_list.js index 5d87373d5..067aa6133 100644 --- a/app/components/channel_drawer/channels_list/filtered_list/filtered_list.js +++ b/app/components/channel_drawer/channels_list/filtered_list/filtered_list.js @@ -53,7 +53,6 @@ class FilteredList extends Component { }; static defaultProps = { - currentTeam: {}, currentChannel: {}, pastDirectMessages: [], }; diff --git a/app/components/channel_drawer/channels_list/filtered_list/index.js b/app/components/channel_drawer/channels_list/filtered_list/index.js index ac8fba2bd..68f3bf3e1 100644 --- a/app/components/channel_drawer/channels_list/filtered_list/index.js +++ b/app/components/channel_drawer/channels_list/filtered_list/index.js @@ -16,6 +16,7 @@ import { getOtherChannels, } from 'mattermost-redux/selectors/entities/channels'; import {getConfig} from 'mattermost-redux/selectors/entities/general'; +import {getCurrentTeam} from 'mattermost-redux/selectors/entities/teams'; import {getCurrentUserId, getProfilesInCurrentTeam, getUsers, getUserIdsInChannels, getUserStatuses} from 'mattermost-redux/selectors/entities/users'; import {getDirectShowPreferences, getTeammateNameDisplaySetting, getTheme} from 'mattermost-redux/selectors/entities/preferences'; @@ -109,6 +110,7 @@ function mapStateToProps(state) { return { channels: getChannelsWithUnreadSection(state), currentChannel: getCurrentChannel(state), + currentTeam: getCurrentTeam(state), currentUserId, otherChannels: getOtherChannels(state), groupChannelMemberDetails: getGroupChannelMemberDetails(state),