Do not append root as it is already included in sorted nodes
This commit is contained in:
@@ -395,7 +395,7 @@ function addAnalysesMetadata(username, layergroup, analysesResults) {
|
||||
layergroup.metadata.analyses = layergroup.metadata.analyses || [];
|
||||
|
||||
analysesResults.forEach(function(analysis, index) {
|
||||
var nodes = [analysis.getRoot()].concat(analysis.getSortedNodes());
|
||||
var nodes = analysis.getSortedNodes();
|
||||
layergroup.metadata.analyses.push({
|
||||
nodes: nodes.reduce(function(nodesIdMap, node) {
|
||||
if (node.params.id) {
|
||||
|
||||
Reference in New Issue
Block a user