diff --git a/lib/cartodb/models/mapconfig/provider/named-map-provider.js b/lib/cartodb/models/mapconfig/provider/named-map-provider.js index e58e6bb0..6e9e9aca 100644 --- a/lib/cartodb/models/mapconfig/provider/named-map-provider.js +++ b/lib/cartodb/models/mapconfig/provider/named-map-provider.js @@ -62,7 +62,7 @@ NamedMapMapConfigProvider.prototype.getMapConfig = function(callback) { var context = {}; - this.getTemplate((err, tpl) => { + this.getTemplate((err, template) => { if (err) { this.err = err; return callback(err); @@ -101,7 +101,7 @@ NamedMapMapConfigProvider.prototype.getMapConfig = function(callback) { let requestMapConfig; try { - requestMapConfig = this.templateMaps.instance(this.template, templateParams); + requestMapConfig = this.templateMaps.instance(template, templateParams); } catch (err) { this.err = err; return callback(err);