Use the returned template instead of the cached one
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user