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 = () => {
try {
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);
}