mirror of
https://git.mirrors.martin98.com/https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-08-06 05:37:38 +08:00
commit
ce75dc502b
@ -271,7 +271,7 @@ export function PromptHints(props: {
|
|||||||
|
|
||||||
return () => window.removeEventListener("keydown", onKeyDown);
|
return () => window.removeEventListener("keydown", onKeyDown);
|
||||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||||
}, [noPrompts, selectIndex]);
|
}, [props.prompts.length, selectIndex]);
|
||||||
|
|
||||||
if (noPrompts) return null;
|
if (noPrompts) return null;
|
||||||
return (
|
return (
|
||||||
|
Loading…
x
Reference in New Issue
Block a user