cartodb-4.42/lib/assets/javascripts/builder/routes/handle-widget-route.js

6 lines
212 B
JavaScript
Raw Normal View History

2024-04-06 13:25:13 +08:00
module.exports = function (currentRoute, widgetDefinitionsCollection) {
var widgetId = currentRoute[0] === 'widget' ? currentRoute[1] : null;
widgetDefinitionsCollection.trigger('setSelected', widgetId);
};