Fixed double-check error in turbo-cartocss preprocesing.
This commit is contained in:
@@ -97,7 +97,11 @@ NamedMapMapConfigProvider.prototype.getMapConfig = function(callback) {
|
||||
var next = this;
|
||||
|
||||
self.turboCartoCssAdapter.getLayers(self.owner, _mapConfig.layers, function (err, layers) {
|
||||
if (!err && layers) {
|
||||
if (err) {
|
||||
return next(err);
|
||||
}
|
||||
|
||||
if (layers) {
|
||||
_mapConfig.layers = layers;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user