Merge pull request #460 from sharelatex/ho-null-check-docs

null check map on files and docs inside logger
This commit is contained in:
Henry Oswald 2018-03-28 10:01:49 +01:00 committed by GitHub
commit a998d738ee

View file

@ -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