mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
Fix team type not being set on some page loads in InviteMemberModal (#2691)
This commit is contained in:
committed by
Corey Hulen
parent
4d8b635503
commit
622956c22b
@@ -59,6 +59,8 @@ class InviteMemberModal extends React.Component {
|
||||
this.removeInviteFields = this.removeInviteFields.bind(this);
|
||||
this.showGetTeamInviteLinkModal = this.showGetTeamInviteLinkModal.bind(this);
|
||||
|
||||
const team = TeamStore.getCurrent();
|
||||
|
||||
this.state = {
|
||||
show: false,
|
||||
inviteIds: [0],
|
||||
@@ -70,7 +72,7 @@ class InviteMemberModal extends React.Component {
|
||||
userCreationEnabled: global.window.mm_config.EnableUserCreation === 'true',
|
||||
showConfirmModal: false,
|
||||
isSendingEmails: false,
|
||||
teamType: null
|
||||
teamType: team ? team.type : null
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user