diff --git a/lib/cartodb/models/mapconfig/adapter/mapconfig-overviews-adapter.js b/lib/cartodb/models/mapconfig/adapter/mapconfig-overviews-adapter.js index db2cb439..72c29593 100644 --- a/lib/cartodb/models/mapconfig/adapter/mapconfig-overviews-adapter.js +++ b/lib/cartodb/models/mapconfig/adapter/mapconfig-overviews-adapter.js @@ -33,7 +33,7 @@ MapConfigOverviewsAdapter.prototype.getMapConfig = function(user, requestMapConf step( function collectFiltersData() { var filters, unfiltered_query; - if ( layer.options.source && analysesResults ) { + if ( layer.options.source && analysesResults && !layer.options.sql_wrap) { var sourceId = layer.options.source.id; var node = _.find(analysesResults, function(a){ return a.rootNode.params.id === sourceId; }); if ( node ) {