Skip to content

Commit

Permalink
Merge pull request ChatGPTNextWeb#2412 from Yidadaa/fix-2409
Browse files Browse the repository at this point in the history
fix: ChatGPTNextWeb#2409 empty prompt id cause crash
  • Loading branch information
Yidadaa authored Jul 17, 2023
2 parents 4e6b71a + c916cd1 commit f7e4b36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/components/mask.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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"]}
Expand Down

0 comments on commit f7e4b36

Please sign in to comment.