This commit is contained in:
Ross
2021-11-06 16:00:06 +00:00
parent fd3747375a
commit 6893d43c46
+4 -1
View File
@@ -84,7 +84,9 @@
for (let j = 0; j < inputs.length; j++) { for (let j = 0; j < inputs.length; j++) {
i = inputs.get(j); i = inputs.get(j);
console.log(i) console.log(i)
if (i.files.length > 0) {
files.add(i.files[0]); files.add(i.files[0]);
}
console.log(i.files) console.log(i.files)
} }
return files; return files;
@@ -293,7 +295,8 @@
let distinct_set = new Set([...files_to_add].filter( let distinct_set = new Set([...files_to_add].filter(
x => !current_files.has(x))); x => !current_files.has(x)));
console.log("distinct set", distinct_set.length, items); console.log("distinct set", distinct_set.length,
items);
extendInputs(distinct_set.length); extendInputs(distinct_set.length);
distinct_set.forEach((file) => { distinct_set.forEach((file) => {
addFile(file, false); addFile(file, false);