Skip to content

Commit ce75dc5

Browse files
authored
Merge pull request ChatGPTNextWeb#1665 from yanCode/fix/prompt-select
fix: bug ChatGPTNextWeb#1662
2 parents d3461dd + 23f6c2e commit ce75dc5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/components/chat.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ export function PromptHints(props: {
271271

272272
return () => window.removeEventListener("keydown", onKeyDown);
273273
// eslint-disable-next-line react-hooks/exhaustive-deps
274-
}, [noPrompts, selectIndex]);
274+
}, [props.prompts.length, selectIndex]);
275275

276276
if (noPrompts) return null;
277277
return (

0 commit comments

Comments
 (0)