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

11 lines
331 B
JavaScript
Raw Normal View History

2020-06-15 10:58:47 +08:00
var AnalysesService = require('builder/editor/layers/layer-content-views/analyses/analyses-service');
module.exports = function (currentRoute) {
var routeName = currentRoute[0];
var analysisNode = currentRoute[2];
if (routeName === 'layer_analyses' && !analysisNode) {
AnalysesService.clearNotAppliedAnalysis();
}
};