Skip to content

Commit 2248135

Browse files
committed
Wait for chat history to be available before rushing in!!
1 parent 324fe33 commit 2248135

File tree

4 files changed

+26
-26
lines changed

4 files changed

+26
-26
lines changed

frontend/src/pages/chat/Chat.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -754,7 +754,7 @@ const Chat = () => {
754754
let isInitialSearchMessagePosted = useRef(false);
755755

756756
useEffect(() => {
757-
if (!isInitialSearchMessagePosted.current && !appStateContext?.state.isLoading) {
757+
if (!isInitialSearchMessagePosted.current && appStateContext?.state.chatHistoryLoadingState == ChatHistoryLoadingState.Success) {
758758
isInitialSearchMessagePosted.current = true;
759759
const queryParams = new URLSearchParams(location.search);
760760
const entries = Array.from(queryParams.entries());

static/assets/index-e93b6a91.js renamed to static/assets/index-d332e141.js

Lines changed: 23 additions & 23 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

static/assets/index-e93b6a91.js.map renamed to static/assets/index-d332e141.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

static/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<link rel="icon" type="image/x-icon" href="{{ favicon }}" />
66
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
77
<title>{{ title }}</title>
8-
<script type="module" crossorigin src="/assets/index-e93b6a91.js"></script>
8+
<script type="module" crossorigin src="/assets/index-d332e141.js"></script>
99
<link rel="stylesheet" href="/assets/index-61492790.css">
1010
</head>
1111
<body>

0 commit comments

Comments
 (0)