summaryrefslogtreecommitdiffstats
path: root/webapp/components/invite_member_modal.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/components/invite_member_modal.jsx')
-rw-r--r--webapp/components/invite_member_modal.jsx4
1 files changed, 3 insertions, 1 deletions
diff --git a/webapp/components/invite_member_modal.jsx b/webapp/components/invite_member_modal.jsx
index 81c3a9629..17cec7aad 100644
--- a/webapp/components/invite_member_modal.jsx
+++ b/webapp/components/invite_member_modal.jsx
@@ -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
};
}