From 55f048ad7685843bec98ca5140d74d8f51283028 Mon Sep 17 00:00:00 2001 From: CJ <38697367+imisshtml@users.noreply.github.com> Date: Sat, 12 Oct 2019 01:30:03 -0400 Subject: [PATCH] MM-18173 Removed getState from Add Channel Member method (#3371) Removed getState from Add Channel Member method since the Redux store is not looking for it. 3rd param for this method is a postRootID, which is not sent from this request. --- app/actions/views/channel_add_members.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/actions/views/channel_add_members.js b/app/actions/views/channel_add_members.js index a560fb797..f09e06616 100644 --- a/app/actions/views/channel_add_members.js +++ b/app/actions/views/channel_add_members.js @@ -4,9 +4,9 @@ import {addChannelMember} from 'mattermost-redux/actions/channels'; export function handleAddChannelMembers(channelId, members) { - return async (dispatch, getState) => { + return async (dispatch) => { try { - const requests = members.map((m) => dispatch(addChannelMember(channelId, m, getState))); + const requests = members.map((m) => dispatch(addChannelMember(channelId, m))); return await Promise.all(requests); } catch (error) {