This commit is contained in:
ShengYan, Zhang 2023-05-21 11:58:10 +08:00
parent d3461dd69b
commit 23f6c2e8c9
1 changed files with 1 additions and 1 deletions

View File

@ -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 (