Fix code so it can be parsed by mmjstool (#2816)
This commit is contained in:
parent
d498f15040
commit
90d9b7acca
1 changed files with 2 additions and 1 deletions
|
|
@ -411,7 +411,8 @@ export function handleSelectChannelByName(channelName, teamName) {
|
|||
return async (dispatch, getState) => {
|
||||
const state = getState();
|
||||
const {teams: currentTeams, currentTeamId} = state.entities.teams;
|
||||
const currentTeamName = currentTeams[currentTeamId]?.name;
|
||||
const currentTeam = currentTeams[currentTeamId];
|
||||
const currentTeamName = currentTeam?.name;
|
||||
const {data: channel} = await dispatch(getChannelByNameAndTeamName(teamName || currentTeamName, channelName));
|
||||
const currentChannelId = getCurrentChannelId(state);
|
||||
if (channel && currentChannelId !== channel.id) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue