Explorar el Código

handle missing settings.apis.project_history

Hayden Faulds hace 9 años
padre
commit
c437eb37d5

+ 1 - 1
services/web/app/coffee/Features/History/HistoryController.coffee

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