From d40cf6568da6e49b0a4afdd3e9a0d02c7937b983 Mon Sep 17 00:00:00 2001 From: Shane Kilkelly Date: Mon, 15 Aug 2016 15:40:16 +0100 Subject: [PATCH] Set invites to empty array --- .../ide/share/controllers/ShareProjectModalController.coffee | 3 +++ 1 file changed, 3 insertions(+) diff --git a/services/web/public/coffee/ide/share/controllers/ShareProjectModalController.coffee b/services/web/public/coffee/ide/share/controllers/ShareProjectModalController.coffee index 7874436a3c..409608825e 100644 --- a/services/web/public/coffee/ide/share/controllers/ShareProjectModalController.coffee +++ b/services/web/public/coffee/ide/share/controllers/ShareProjectModalController.coffee @@ -67,6 +67,9 @@ define [ $scope.state.error = null $scope.state.inflight = true + if !$scope.project.invites? + $scope.project.invites = [] + currentMemberEmails = getCurrentMemberEmails() currentInviteEmails = getCurrentInviteEmails() do addNextMember = () ->