fix invalid items removal
This commit is contained in:
parent
84b91d6f5c
commit
ca3213c338
1 changed files with 4 additions and 2 deletions
|
@ -1212,11 +1212,13 @@
|
||||||
array.forEach(function(item) {
|
array.forEach(function(item) {
|
||||||
var name, type, href, displayPath;
|
var name, type, href, displayPath;
|
||||||
|
|
||||||
if (shown.indexOf(item.ty) !== -1) {
|
var id_ty = item.ty + item.path + item.name;
|
||||||
|
if (shown.indexOf(id_ty) !== -1) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
shown.push(item.ty);
|
console.log(item);
|
||||||
|
shown.push(id_ty);
|
||||||
name = item.name;
|
name = item.name;
|
||||||
type = itemTypes[item.ty];
|
type = itemTypes[item.ty];
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue