mirror of
https://github.com/overleaf/overleaf.git
synced 2025-01-30 19:00:48 +00:00
Be defensive on comment text
This commit is contained in:
parent
c67150ea10
commit
a0505afb23
1 changed files with 1 additions and 1 deletions
|
@ -106,7 +106,7 @@ module.exports = WebsocketController =
|
|||
if options.encodeRanges
|
||||
try
|
||||
for comment in ranges?.comments or []
|
||||
comment.op.c = encodeForWebsockets(comment.op.c)
|
||||
comment.op.c = encodeForWebsockets(comment.op.c) if comment.op.c?
|
||||
for change in ranges?.changes or []
|
||||
change.op.i = encodeForWebsockets(change.op.i) if change.op.i?
|
||||
change.op.d = encodeForWebsockets(change.op.d) if change.op.d?
|
||||
|
|
Loading…
Reference in a new issue