From 80cb15d602b43c693e8da0752a1592f811416619 Mon Sep 17 00:00:00 2001 From: somebody Date: Tue, 27 Dec 2022 21:31:07 -0600 Subject: [PATCH] Fix null image issue --- static/koboldai.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/static/koboldai.js b/static/koboldai.js index f8f9fd50..358d3120 100644 --- a/static/koboldai.js +++ b/static/koboldai.js @@ -7063,6 +7063,8 @@ async function showScreenshotWizard(actionComposition, startDebt, endDebt) { screenshotImagePicker.innerHTML = ""; for (const image of imageData) { + if (!image) continue; + const imgContainer = $e("div", screenshotImagePicker, {classes: ["img-container"]}); const checkbox = $e("input", imgContainer, {type: "checkbox"}); const imageEl = $e("img", imgContainer, {