cartodb-4.42/lib/assets/javascripts/builder/routes/handle-analyses-route.js
2024-04-06 05:25:13 +00: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();
}
};