From 5de8c4f9c3beec257cbee844b53ca26b69fa507e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Garc=C3=ADa=20Aubert?= Date: Mon, 5 Mar 2018 11:19:17 +0100 Subject: [PATCH] Make explicit that `forceFormat` is optional --- lib/cartodb/controllers/named_maps.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cartodb/controllers/named_maps.js b/lib/cartodb/controllers/named_maps.js index 4fe1a1c3..93566cc9 100644 --- a/lib/cartodb/controllers/named_maps.js +++ b/lib/cartodb/controllers/named_maps.js @@ -89,7 +89,7 @@ NamedMapsController.prototype.register = function(app) { ); }; -NamedMapsController.prototype.getNamedMapProvider = function ({ label, forcedFormat }) { +NamedMapsController.prototype.getNamedMapProvider = function ({ label, forcedFormat = null }) { return function getNamedMapProviderMiddleware (req, res, next) { const { user } = res.locals; const { config, auth_token } = req.query;