diff --git a/lib/cartodb/models/mapconfig/provider/named-map-provider.js b/lib/cartodb/models/mapconfig/provider/named-map-provider.js index 8597a07e..453fcab9 100644 --- a/lib/cartodb/models/mapconfig/provider/named-map-provider.js +++ b/lib/cartodb/models/mapconfig/provider/named-map-provider.js @@ -140,13 +140,15 @@ NamedMapMapConfigProvider.prototype.getMapConfig = function(callback) { assert.ifError(err); var next = this; context.analysesResults = self.analysesResults; - self.overviewsAdapter.getMapConfig(self.owner, _mapConfig, rendererParams, context, function(err, _mapConfig) { - if (err) { - return next(err); - } + self.overviewsAdapter.getMapConfig(self.owner, _mapConfig, rendererParams, context, + function(err, _mapConfig) { + if (err) { + return next(err); + } - return next(null, _mapConfig, datasource); - }); + return next(null, _mapConfig, datasource); + } + ); }, function parseTurboCarto(err, _mapConfig, datasource) { assert.ifError(err);