Skip to content

Commit

Permalink
Disable chat input until CosmosDB is loaded if configured (#370)
Browse files Browse the repository at this point in the history
Co-authored-by: Ian Seabock (Centific Technologies Inc) <v-ianseabock@microsoft.com>
  • Loading branch information
iseabock and Ian Seabock (Centific Technologies Inc) committed Nov 9, 2023
1 parent 72eaa19 commit 86de997
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 21 deletions.
6 changes: 5 additions & 1 deletion frontend/src/pages/chat/Chat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,11 @@ const Chat = () => {
setErrorMsg(null)
}, 500);
}


useEffect(() => {
setIsLoading(appStateContext?.state.chatHistoryLoadingState === ChatHistoryLoadingState.Loading)
}, [appStateContext?.state.chatHistoryLoadingState])

const getUserInfoList = async () => {
const userInfoList = await getUserInfo();
if (userInfoList.length === 0 && window.location.hostname !== "127.0.0.1") {
Expand Down
Loading

0 comments on commit 86de997

Please sign in to comment.