handle missing settings.apis.project_history

This commit is contained in:
Hayden Faulds 2017-10-24 09:47:14 +01:00
parent 519f041215
commit c437eb37d5

View file

@ -21,7 +21,7 @@ module.exports = HistoryController =
next(error)
buildHistoryServiceUrl: () ->
if settings.apis.project_history.enabled
if settings.apis.project_history?.enabled
return settings.apis.project_history.url
else
return settings.apis.trackchanges.url