Fix promise call generate

This commit is contained in:
Sébastien Chopin 2016-12-21 20:50:46 +01:00
parent ba4a7c3e0b
commit 2ae761d2e7

View File

@ -137,7 +137,7 @@ function resolveRouteParams (routeParams) {
let promises = [] let promises = []
Object.keys(routeParams).forEach(function (routePath) { Object.keys(routeParams).forEach(function (routePath) {
let promise = promisifyRouteParams(routeParams[routePath]) let promise = promisifyRouteParams(routeParams[routePath])
.then((routeParamsData) => { promise.then((routeParamsData) => {
routeParams[routePath] = routeParamsData routeParams[routePath] = routeParamsData
}) })
.catch((e) => { .catch((e) => {