1
Fork 0

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) { 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];