From 035acb343e518a9bd77c0e6635aca7dc8d508ed6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Garc=C3=ADa=20Aubert?= Date: Wed, 27 Mar 2019 11:38:25 +0100 Subject: [PATCH] Fix uncaught exception: TypeError: Cannot read property 'id' of undefined --- lib/cartodb/models/mapconfig/provider/named-map-provider.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/cartodb/models/mapconfig/provider/named-map-provider.js b/lib/cartodb/models/mapconfig/provider/named-map-provider.js index 513fb7b7..298920a1 100644 --- a/lib/cartodb/models/mapconfig/provider/named-map-provider.js +++ b/lib/cartodb/models/mapconfig/provider/named-map-provider.js @@ -74,8 +74,8 @@ module.exports = class NamedMapMapConfigProvider extends BaseMapConfigProvider { JSON.parse(this.config) : this.config; } catch (e) { - const error = new Error('malformed config parameter, should be a valid JSON'); - this.err = error; + const err = new Error('malformed config parameter, should be a valid JSON'); + this.err = err; return callback(err); }