Browse Source

Merge pull request #2524 from Yidadaa/bugfix-0731

fix: #2514 should not clear the message after editing message
Yifei Zhang 1 year ago
parent
commit
e354fca4a4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/components/ui-lib.tsx

+ 1 - 1
app/components/ui-lib.tsx

@@ -377,7 +377,7 @@ export function showPrompt(content: any, value = "", rows = 3) {
   };
 
   return new Promise<string>((resolve) => {
-    let userInput = "";
+    let userInput = value;
 
     root.render(
       <Modal