Explorar el Código

Update mask.tsx

Yifei Zhang hace 1 año
padre
commit
c916cd1a87
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      app/components/mask.tsx

+ 1 - 1
app/components/mask.tsx

@@ -215,7 +215,7 @@ function ContextPromptItem(props: {
   const [focusingInput, setFocusingInput] = useState(false);
   const [focusingInput, setFocusingInput] = useState(false);
 
 
   return (
   return (
-    <Draggable draggableId={props.prompt.id.toString()} index={props.index}>
+    <Draggable draggableId={props.prompt.id || props.index.toString()} index={props.index}>
       {(provided) => (
       {(provided) => (
         <div
         <div
           className={chatStyle["context-prompt-row"]}
           className={chatStyle["context-prompt-row"]}