mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-03 22:29:01 +02:00
Merge pull request #460 from sharelatex/ho-null-check-docs
null check map on files and docs inside logger
This commit is contained in:
@@ -22,6 +22,8 @@ module.exports =
|
||||
}
|
||||
|
||||
docs: (docs) ->
|
||||
if !docs?.map?
|
||||
return
|
||||
docs.map (doc) ->
|
||||
{
|
||||
path: doc.path
|
||||
@@ -29,6 +31,8 @@ module.exports =
|
||||
}
|
||||
|
||||
files: (files) ->
|
||||
if !files?.map?
|
||||
return
|
||||
files.map (file) ->
|
||||
{
|
||||
path: file.path
|
||||
|
||||
Reference in New Issue
Block a user