diff --git a/templates/repo/modelmanage/index.tmpl b/templates/repo/modelmanage/index.tmpl index 567ff8dc7..9e741cf2d 100644 --- a/templates/repo/modelmanage/index.tmpl +++ b/templates/repo/modelmanage/index.tmpl @@ -475,7 +475,7 @@ for(let j=0;j < fileSplits.length;j++){ if(fileSplits[j] == ""){ if(data[i].FileName[data[i].FileName.length -1] =="/"){ - if(Object.keys(parentNodeMap[fileSplits[j]]).length ==0){ + if(Object.keys(parentNodeMap[fileSplits[j-1]]).length ==0){ parentNodeMap[fileSplits[j]][dirKey]="true"; } }