mirror of
https://github.com/Yidadaa/ChatGPT-Next-Web.git
synced 2025-08-19 23:26:31 +08:00
@@ -271,7 +271,7 @@ export function PromptHints(props: {
|
||||
|
||||
return () => window.removeEventListener("keydown", onKeyDown);
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, [noPrompts, selectIndex]);
|
||||
}, [props.prompts.length, selectIndex]);
|
||||
|
||||
if (noPrompts) return null;
|
||||
return (
|
||||
|
Reference in New Issue
Block a user