Ver Fonte

fix: #2514 should not clear the message after editing message

Yidadaa há 1 ano atrás
pai
commit
129e7afc16
1 ficheiros alterados com 1 adições e 1 exclusões
  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) => {
   return new Promise<string>((resolve) => {
-    let userInput = "";
+    let userInput = value;
 
 
     root.render(
     root.render(
       <Modal
       <Modal