mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-05-07 12:16:04 +00:00
Update editor.html
This commit is contained in:
parent
a42180d244
commit
fb6596fe64
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user