From ad512e65443d4a3921c07db436bb7d7223b7e7f0 Mon Sep 17 00:00:00 2001 From: Piotr Gawron <piotr.gawron@uni.lu> Date: Thu, 23 Aug 2018 16:53:22 +0200 Subject: [PATCH] element tree contains definition of BioEntity class --- frontend-js/src/main/js/Configuration.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/frontend-js/src/main/js/Configuration.js b/frontend-js/src/main/js/Configuration.js index 8254c7ae0b..a037018701 100644 --- a/frontend-js/src/main/js/Configuration.js +++ b/frontend-js/src/main/js/Configuration.js @@ -408,7 +408,11 @@ Configuration.prototype.getElementTypeTree = function () { var treeNodes = { "lcsb.mapviewer.model.map.BioEntity": { text: "BioEntity", - children: [] + children: [], + data: { + className: "lcsb.mapviewer.model.map.BioEntity", + name: "BioEntity" + } } }; @@ -438,7 +442,7 @@ Configuration.prototype.getElementTypeTree = function () { for (var treeNodeName in treeNodes) { if (treeNodes.hasOwnProperty(treeNodeName)) { var treeNode = treeNodes[treeNodeName]; - if (treeNode.data !== undefined) { + if (treeNode.data !== undefined && treeNode.data.parentClass !== undefined) { var parentNode = treeNodes[treeNode.data.parentClass]; if (parentNode.data === undefined || parentNode.data.name !== "Compartment") { parentNode.children.push(treeNode); -- GitLab