Fix team type not being set on some page loads in InviteMemberModal (#2691)

This commit is contained in:
Joram Wilander
2016-04-13 14:32:37 -04:00
committed by Corey Hulen
parent 4d8b635503
commit 622956c22b

View File

@@ -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
};
}