From 60df238ec24aae29cbbc9992b672def4efbb579b Mon Sep 17 00:00:00 2001 From: cristhianzl Date: Mon, 17 Jun 2024 18:16:04 -0300 Subject: [PATCH] fix markdown and jax version --- src/frontend/package.json | 4 ++-- .../modals/IOModal/components/chatView/chatMessage/index.tsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/frontend/package.json b/src/frontend/package.json index 89d4b0717..554446880 100644 --- a/src/frontend/package.json +++ b/src/frontend/package.json @@ -58,13 +58,13 @@ "react-hotkeys-hook": "^4.5.0", "react-icons": "^5.2.1", "react-laag": "^2.0.5", - "react-markdown": "^9.0.1", + "react-markdown": "^8.0.7", "react-pdf": "^9.0.0", "react-router-dom": "^6.23.1", "react-syntax-highlighter": "^15.5.0", "react18-json-view": "^0.2.8", "reactflow": "^11.11.3", - "rehype-mathjax": "^6.0.0", + "rehype-mathjax": "^4.0.3", "remark-gfm": "^4.0.0", "remark-math": "^6.0.0", "shadcn-ui": "^0.8.0", diff --git a/src/frontend/src/modals/IOModal/components/chatView/chatMessage/index.tsx b/src/frontend/src/modals/IOModal/components/chatView/chatMessage/index.tsx index 4aeaf12b0..067aca4c4 100644 --- a/src/frontend/src/modals/IOModal/components/chatView/chatMessage/index.tsx +++ b/src/frontend/src/modals/IOModal/components/chatView/chatMessage/index.tsx @@ -200,7 +200,7 @@ export default function ChatMessage({ children, ...props }) => { - if (children?.length) { + if ((children as string)!.length) { if (children![0] === "▍") { return (