From 3298192817cd828d981a37675d72f9a7358057ed Mon Sep 17 00:00:00 2001 From: Ross Date: Sat, 6 Nov 2021 18:48:12 +0000 Subject: [PATCH] . --- rapids/templates/rapids/rapid_form.html | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/rapids/templates/rapids/rapid_form.html b/rapids/templates/rapids/rapid_form.html index 0f7e0aa8..b9993620 100755 --- a/rapids/templates/rapids/rapid_form.html +++ b/rapids/templates/rapids/rapid_form.html @@ -274,9 +274,9 @@ current_files = getCurrentFiles(); current_files_tuple = new Set() for (let elem of current_files) { - current_files_tuple.add([elem.size, elem.name, - elem.lastModified - ]); + current_files_tuple.add( + `${elem.size}, ${elem.name}, ${elem.lastModified}` + ); } console.log(current_files_tuple) @@ -284,9 +284,9 @@ f = await items[i].handle.getFile() console.log("f", f) - if (!current_files_tuple.has([f.size, f.name, f - .lastModified - ])) { + if (!current_files_tuple.has( + `${f.size}, ${f.name}, ${f.lastModified}` + )) { files_to_add.add(f); } } @@ -471,7 +471,6 @@ image.title = file.name; image.src = reader.result; image.className = "temp-thumb"; - console.log("read", reader, el); $(el).parent().parent().find(".temp-thumb").remove(); $(el).parent().parent().prepend(image); //images.push(reader.result); @@ -491,7 +490,6 @@ file_set.each(async (n, el) => { - console.log(el); if (el.files.length > 0) { filename = el.files[0].name; // Probably no need to await here anymore