mirror of
https://github.com/overleaf/overleaf.git
synced 2025-01-23 05:52:57 +00:00
Add in null check for user when getting hue in chat
This commit is contained in:
parent
04c151eed0
commit
65c1a62cb7
1 changed files with 4 additions and 1 deletions
|
@ -4,5 +4,8 @@ define [
|
|||
], (App, ColorManager) ->
|
||||
App.controller "ChatMessageController", ["$scope", "ide", ($scope, ide) ->
|
||||
$scope.hue = (user) ->
|
||||
ColorManager.getHueForUserId(user.id)
|
||||
if !user?
|
||||
return 0
|
||||
else
|
||||
return ColorManager.getHueForUserId(user.id)
|
||||
]
|
Loading…
Reference in a new issue