MM-18173 Removed getState from Add Channel Member method (#3436)
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.
This commit is contained in:
parent
7d1cabe2f5
commit
252cbf929e
1 changed files with 2 additions and 2 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue