mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 06:03:45 +01:00
Add in some null checks
This commit is contained in:
@@ -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 ''
|
||||
|
||||
Reference in New Issue
Block a user