Skip to content

Commit 194d3ba

Browse files
authored
fix: Cannot show JDK class node in hierarchical mode (#406)
1 parent 4fcaee3 commit 194d3ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/views/hierarchicalPackageNode.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export class HierarchicalPackageNode extends PackageNode {
3131
if (data) {
3232
if (this.nodeData?.children) {
3333
this.nodeData.children.push(...data);
34-
this.nodeData.children = _.uniqBy(this.nodeData.children, "path");
34+
this.nodeData.children = _.uniqBy(this.nodeData.children, (child: INodeData) => [child.path, child.name].join());
3535
} else {
3636
this.nodeData.children = data;
3737
}

0 commit comments

Comments
 (0)