We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a60909 commit 8d655e6Copy full SHA for 8d655e6
src/tree/mr-tree.ts
@@ -199,10 +199,9 @@ export class MRItem extends ListItem<IMRData> {
199
}
200
201
private _insert(node: IFileNode, nodes: IFileNode[]) {
202
- const hasSameRootNode = nodes.find(i => i.path === node.path);
203
-
204
for (const i of nodes) {
205
if (i.parentPath === node.parentPath) {
+ const hasSameRootNode = nodes.find(j => j.path === node.path);
206
if (hasSameRootNode) {
207
break;
208
0 commit comments