mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Add in some null checks
This commit is contained in:
parent
9977a418c3
commit
540aaf0672
1 changed files with 2 additions and 2 deletions
|
@ -191,7 +191,7 @@ module.exports = DiffGenerator =
|
|||
return part
|
||||
|
||||
_getLengthOfDiffPart: (part) ->
|
||||
(part.u or part.d or part.i).length
|
||||
(part.u or part.d or part.i or '').length
|
||||
|
||||
_getContentOfPart: (part) ->
|
||||
part.u or part.d or part.i
|
||||
part.u or part.d or part.i or ''
|
||||
|
|
Loading…
Reference in a new issue