ソースを参照

Update mask.tsx

Yifei Zhang 1 年間 前
コミット
c916cd1a87
1 ファイル変更1 行追加1 行削除
  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);
 
   return (
-    <Draggable draggableId={props.prompt.id.toString()} index={props.index}>
+    <Draggable draggableId={props.prompt.id || props.index.toString()} index={props.index}>
       {(provided) => (
         <div
           className={chatStyle["context-prompt-row"]}