Further clean up in home page initial cards experience

This commit is contained in:
sabaimran
2024-12-22 18:11:19 -08:00
parent 4c4f4401b1
commit c83709fdd1
5 changed files with 27 additions and 29 deletions

View File

@@ -136,10 +136,9 @@ export const ChatInputArea = forwardRef<HTMLTextAreaElement, ChatInputProps>((pr
}, [uploading]);
useEffect(() => {
if (props.prefillMessage) {
setMessage(props.prefillMessage);
chatInputRef?.current?.focus();
}
if (props.prefillMessage === undefined) return;
setMessage(props.prefillMessage);
chatInputRef?.current?.focus();
}, [props.prefillMessage]);
useEffect(() => {