mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Defend against undefined invites and members
This commit is contained in:
parent
158afbb157
commit
492853f284
1 changed files with 2 additions and 2 deletions
|
@ -43,10 +43,10 @@ define [
|
|||
contact.display = contact.name
|
||||
|
||||
getCurrentMemberEmails = () ->
|
||||
$scope.project.members.map (u) -> u.email
|
||||
($scope.project.members || []).map (u) -> u.email
|
||||
|
||||
getCurrentInviteEmails = () ->
|
||||
$scope.project.invites.map (u) -> u.email
|
||||
($scope.project.invites || []).map (u) -> u.email
|
||||
|
||||
$scope.filterAutocompleteUsers = ($query) ->
|
||||
currentMemberEmails = getCurrentMemberEmails()
|
||||
|
|
Loading…
Reference in a new issue