cartodb/lib/assets/javascripts/builder/routes/handle-widget-route.js
2020-06-15 10:58:47 +08:00

6 lines
212 B
JavaScript

module.exports = function (currentRoute, widgetDefinitionsCollection) {
var widgetId = currentRoute[0] === 'widget' ? currentRoute[1] : null;
widgetDefinitionsCollection.trigger('setSelected', widgetId);
};