mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05: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:
commit
a998d738ee
1 changed files with 4 additions and 0 deletions
|
@ -22,6 +22,8 @@ module.exports =
|
||||||
}
|
}
|
||||||
|
|
||||||
docs: (docs) ->
|
docs: (docs) ->
|
||||||
|
if !docs?.map?
|
||||||
|
return
|
||||||
docs.map (doc) ->
|
docs.map (doc) ->
|
||||||
{
|
{
|
||||||
path: doc.path
|
path: doc.path
|
||||||
|
@ -29,6 +31,8 @@ module.exports =
|
||||||
}
|
}
|
||||||
|
|
||||||
files: (files) ->
|
files: (files) ->
|
||||||
|
if !files?.map?
|
||||||
|
return
|
||||||
files.map (file) ->
|
files.map (file) ->
|
||||||
{
|
{
|
||||||
path: file.path
|
path: file.path
|
||||||
|
|
Loading…
Reference in a new issue