diff --git a/frontend/taipy-gui/src/components/Taipy/Chat.spec.tsx b/frontend/taipy-gui/src/components/Taipy/Chat.spec.tsx index cfc88195c..324d08efb 100644 --- a/frontend/taipy-gui/src/components/Taipy/Chat.spec.tsx +++ b/frontend/taipy-gui/src/components/Taipy/Chat.spec.tsx @@ -212,7 +212,7 @@ describe("Chat Component", () => { }); jest.restoreAllMocks(); }); - it("Not upload image over a file size limit", async () => { + it("does not upload image over a file size limit", async () => { const dispatch = jest.fn(); const state: TaipyState = INITIAL_STATE; const { getByText, getByAltText } = render( diff --git a/frontend/taipy-gui/src/components/Taipy/Chat.tsx b/frontend/taipy-gui/src/components/Taipy/Chat.tsx index fc1e9bed7..94ea8a2f4 100644 --- a/frontend/taipy-gui/src/components/Taipy/Chat.tsx +++ b/frontend/taipy-gui/src/components/Taipy/Chat.tsx @@ -426,7 +426,7 @@ const Chat = (props: ChatProps) => { ); const showBottom = useCallback(() => { - anchorDivRef.current?.scrollIntoView(); + anchorDivRef.current?.scrollIntoView && anchorDivRef.current?.scrollIntoView(); setShowMessage(false); }, []);