From 8851b866871a1aba290855493ae6163e53f3ebfd Mon Sep 17 00:00:00 2001 From: ebolam Date: Fri, 18 Nov 2022 20:11:12 -0500 Subject: [PATCH] Bug Fix --- static/koboldai.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/static/koboldai.js b/static/koboldai.js index 2b92859d..c1d8ce54 100644 --- a/static/koboldai.js +++ b/static/koboldai.js @@ -3868,7 +3868,9 @@ function dragend(e) { const id = drag_id; const draggable = document.getElementById(id); // display the draggable element - draggable.classList.remove('hidden'); + if (draggable) { + draggable.classList.remove('hidden'); + } e.preventDefault(); }