From 23f6c2e8c90cdbe33854e0428f4175350cb406f3 Mon Sep 17 00:00:00 2001 From: "ShengYan, Zhang" Date: Sun, 21 May 2023 11:58:10 +0800 Subject: [PATCH] fix: bug #1662 --- app/components/chat.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/components/chat.tsx b/app/components/chat.tsx index 80c6655d7..386d50f27 100644 --- a/app/components/chat.tsx +++ b/app/components/chat.tsx @@ -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 (