diff --git a/lib/cartodb/models/mapconfig/adapter/vector-mapconfig-adapter.js b/lib/cartodb/models/mapconfig/adapter/vector-mapconfig-adapter.js index 76fdd836..4e5020a6 100644 --- a/lib/cartodb/models/mapconfig/adapter/vector-mapconfig-adapter.js +++ b/lib/cartodb/models/mapconfig/adapter/vector-mapconfig-adapter.js @@ -53,7 +53,7 @@ class VectorMapConfigAdapter { } _isDatesAsNumbersFlagEnabled(requestMapConfig) { - return requestMapConfig.layers.some(layer => layer.options.dates_as_numbers); + return requestMapConfig.layers && requestMapConfig.layers.some(layer => layer.options.dates_as_numbers); } }