mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-30 12:36:45 +00:00
Do not show icons for childless categories
This commit is contained in:
parent
95db82a4ea
commit
e9650a94f3
@ -175,7 +175,6 @@ function enableBreadcrumbTree(options) {
|
||||
|
||||
for (var i = 0; i < data.length; i++) {
|
||||
node = data[i];
|
||||
node.nodes = [];
|
||||
nodes[node.pk] = node;
|
||||
node.selectable = false;
|
||||
|
||||
@ -193,7 +192,11 @@ function enableBreadcrumbTree(options) {
|
||||
node = data[i];
|
||||
|
||||
if (node.parent != null) {
|
||||
if (nodes[node.parent].nodes) {
|
||||
nodes[node.parent].nodes.push(node);
|
||||
} else {
|
||||
nodes[node.parent].nodes = [node];
|
||||
}
|
||||
|
||||
if (node.state.expanded) {
|
||||
nodes[node.parent].state.expanded = true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user