Fix uploading a new thumbnail image when updating a thumbnail

pull/463/head
ElementalAlchemist 6 days ago committed by Christopher Usher
parent 0d35e95dc7
commit 3d4c63a697

@ -365,7 +365,7 @@ function generateTemplateDOM(index, template) {
const fileReaderCompletePromise = new Promise((resolve, reject) => {
fileReader.addEventListener("loadend", (event) => resolve());
});
fileReader.readAsDataURL(imageFile);
fileReader.readAsDataURL(imageFiles[0]);
await fileReaderCompletePromise;
const imageDataURL = fileReader.result;

Loading…
Cancel
Save