From fb6596fe64e5b29ad0da6d30369a7f2bb453be92 Mon Sep 17 00:00:00 2001 From: "Namhyeon, Go" Date: Sun, 27 Apr 2025 11:10:00 +0900 Subject: [PATCH] Update editor.html --- WelsonJS.Toolkit/WelsonJS.Launcher/editor.html | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/WelsonJS.Toolkit/WelsonJS.Launcher/editor.html b/WelsonJS.Toolkit/WelsonJS.Launcher/editor.html index 9a816e1..2110cb1 100644 --- a/WelsonJS.Toolkit/WelsonJS.Launcher/editor.html +++ b/WelsonJS.Toolkit/WelsonJS.Launcher/editor.html @@ -194,8 +194,12 @@ const invoke = () => { try { - const updated = promptEditorRef.current.get(); - promptMessagesRef.current = updated; + if (promptEditorRef.current) { + const updated = promptEditorRef.current.get(); + promptMessagesRef.current = updated; + } else { + throw new Error("promptEditorRef.current is null"); + } } catch (e) { console.error("Invalid JSON structure", e); }