summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2016-04-13 14:32:37 -0400
committerCorey Hulen <corey@hulen.com>2016-04-13 11:32:37 -0700
commit622956c22b5229c57087f161ab53b5e5352bd447 (patch)
treed03542f42c4240404cd495dd4cdb6b6b69b400f9
parent4d8b6355038c2608a5722aa41e0d60bd49c3fc16 (diff)
downloadchat-622956c22b5229c57087f161ab53b5e5352bd447.tar.gz
chat-622956c22b5229c57087f161ab53b5e5352bd447.tar.bz2
chat-622956c22b5229c57087f161ab53b5e5352bd447.zip
Fix team type not being set on some page loads in InviteMemberModal (#2691)
-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
};
}