Fixes a potential error.
This commit is contained in:
parent
b673c2989d
commit
04a3d5119a
@ -510,7 +510,8 @@ socket.on-message = (event) ->
|
|||||||
when "project"
|
when "project"
|
||||||
model.projects[message.project.id] = Project message.project
|
model.projects[message.project.id] = Project message.project
|
||||||
when "user"
|
when "user"
|
||||||
model.users[message.user.uid] := message.user
|
if message.user
|
||||||
|
model.users[message.user.uid] := message.user
|
||||||
else
|
else
|
||||||
console.log "RECEIVED UNKNOWN MESSAGE TYPE: #{message.type}"
|
console.log "RECEIVED UNKNOWN MESSAGE TYPE: #{message.type}"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user