Parcourir la source

Set invites to empty array

Shane Kilkelly il y a 10 ans
Parent
commit
d40cf6568d

+ 3 - 0
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 = () ->