Update editor.html

This commit is contained in:
Namhyeon Go 2025-04-27 11:10:00 +09:00
parent a42180d244
commit fb6596fe64

View File

@ -194,8 +194,12 @@
const invoke = () => { const invoke = () => {
try { try {
const updated = promptEditorRef.current.get(); if (promptEditorRef.current) {
promptMessagesRef.current = updated; const updated = promptEditorRef.current.get();
promptMessagesRef.current = updated;
} else {
throw new Error("promptEditorRef.current is null");
}
} catch (e) { } catch (e) {
console.error("Invalid JSON structure", e); console.error("Invalid JSON structure", e);
} }