mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-02-23 17:59:49 +08:00
Merge pull request #2412 from Yidadaa/fix-2409
fix: #2409 empty prompt id cause crash
This commit is contained in:
commit
f7e4b36746
@ -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"]}
|
||||
|
Loading…
Reference in New Issue
Block a user