fix: sider

This commit is contained in:
Rucha Mahabal 2021-07-09 01:25:26 +05:30
parent 9e7302a21e
commit e1cf7712d9

View File

@ -376,8 +376,9 @@ erpnext.HierarchyChartMobile = class {
let node_element = $(`#${node.id}`);
node_element.click(function() {
let el = $(this).detach();
if (node.is_root) {
var el = $(this).detach();
me.$hierarchy.empty();
$(`#connectors`).empty();
me.add_node_to_hierarchy(el, node);
@ -385,7 +386,6 @@ erpnext.HierarchyChartMobile = class {
me.remove_levels_after_node(node);
me.remove_orphaned_connectors();
} else {
var el = $(this).detach();
me.add_node_to_hierarchy(el, node);
me.collapse_node();
}