mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-27 02:51:57 +02:00
null check map on files and docs inside logger
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user