Merge branch 'Yidadaa:main' into main

This commit is contained in:
keminu 2023-05-21 16:15:43 +08:00 committed by GitHub
commit 5e58050b1d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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 (