### What problem does this PR solve? fix: fetch user by @tanstack/react-query #1306 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
@@ -8,7 +8,7 @@ import { Button, Drawer, Flex, Input, Spin } from 'antd';
|
||||
|
||||
import { useSelectCurrentMessages, useSendMessage } from './hooks';
|
||||
|
||||
import { useSelectUserInfo } from '@/hooks/user-setting-hooks';
|
||||
import { useFetchUserInfo } from '@/hooks/user-setting-hooks';
|
||||
import styles from './index.less';
|
||||
|
||||
const FlowChatBox = () => {
|
||||
@@ -32,7 +32,7 @@ const FlowChatBox = () => {
|
||||
useClickDrawer();
|
||||
useGetFileIcon();
|
||||
const { t } = useTranslate('chat');
|
||||
const userInfo = useSelectUserInfo();
|
||||
const { data: userInfo } = useFetchUserInfo();
|
||||
|
||||
return (
|
||||
<>
|
||||
|
||||
@@ -69,7 +69,7 @@ export const useSelectCanvasData = () => {
|
||||
};
|
||||
|
||||
export const useInitializeOperatorParams = () => {
|
||||
const llmId = useFetchModelId(true);
|
||||
const llmId = useFetchModelId();
|
||||
|
||||
const initialFormValuesMap = useMemo(() => {
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user