fix invalid items removal

This commit is contained in:
Guillaume Gomez 2018-04-19 19:59:45 +02:00
parent 84b91d6f5c
commit ca3213c338

View File

@ -1212,11 +1212,13 @@
array.forEach(function(item) {
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;
}
shown.push(item.ty);
console.log(item);
shown.push(id_ty);
name = item.name;
type = itemTypes[item.ty];