mirror of
https://github.com/overleaf/overleaf.git
synced 2025-02-05 13:12:46 +00:00
null check map on files and docs inside logger
This commit is contained in:
parent
70433e59da
commit
eeb76441c0
1 changed files with 6 additions and 2 deletions
|
@ -22,14 +22,18 @@ module.exports =
|
|||
}
|
||||
|
||||
docs: (docs) ->
|
||||
docs.map (doc) ->
|
||||
if !docs?.map?
|
||||
return
|
||||
docs?.map (doc) ->
|
||||
{
|
||||
path: doc.path
|
||||
id: doc.doc
|
||||
}
|
||||
|
||||
files: (files) ->
|
||||
files.map (file) ->
|
||||
if !files?.map?
|
||||
return
|
||||
files?.map (file) ->
|
||||
{
|
||||
path: file.path
|
||||
id: file.file
|
||||
|
|
Loading…
Reference in a new issue