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

11 lines
331 B
JavaScript

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();
}
};