balibabu
commited on
Commit
·
fd6a873
1
Parent(s):
a740b6f
fix: Set the default language to English #1306 (#1694)
Browse files### What problem does this PR solve?
fix: Set the default language to English #1306
### Type of change
- [x] Bug Fix (non-breaking change which fixes an issue)
web/src/hooks/file-manager-hooks.ts
CHANGED
@@ -40,6 +40,7 @@ export const useFetchFileList = (): ResponseType<any> & IListResult => {
|
|
40 |
},
|
41 |
],
|
42 |
initialData: {},
|
|
|
43 |
queryFn: async (params: any) => {
|
44 |
console.info(params);
|
45 |
const { data } = await fileManagerService.listFile({
|
|
|
40 |
},
|
41 |
],
|
42 |
initialData: {},
|
43 |
+
gcTime: 0,
|
44 |
queryFn: async (params: any) => {
|
45 |
console.info(params);
|
46 |
const { data } = await fileManagerService.listFile({
|
web/src/hooks/flow-hooks.ts
CHANGED
@@ -70,6 +70,7 @@ export const useFetchFlowList = (): { data: IFlow[]; loading: boolean } => {
|
|
70 |
const { data, isFetching: loading } = useQuery({
|
71 |
queryKey: ['fetchFlowList'],
|
72 |
initialData: [],
|
|
|
73 |
queryFn: async () => {
|
74 |
const { data } = await flowService.listCanvas();
|
75 |
|
|
|
70 |
const { data, isFetching: loading } = useQuery({
|
71 |
queryKey: ['fetchFlowList'],
|
72 |
initialData: [],
|
73 |
+
gcTime: 0,
|
74 |
queryFn: async () => {
|
75 |
const { data } = await flowService.listCanvas();
|
76 |
|
web/src/layouts/components/right-toolbar/index.tsx
CHANGED
@@ -25,7 +25,7 @@ const handleGithubCLick = () => {
|
|
25 |
const RightToolBar = () => {
|
26 |
const { t } = useTranslate('common');
|
27 |
const changeLanguage = useChangeLanguage();
|
28 |
-
const { language = '
|
29 |
(state) => state.settingModel.userInfo,
|
30 |
);
|
31 |
|
|
|
25 |
const RightToolBar = () => {
|
26 |
const { t } = useTranslate('common');
|
27 |
const changeLanguage = useChangeLanguage();
|
28 |
+
const { language = 'English' } = useSelector(
|
29 |
(state) => state.settingModel.userInfo,
|
30 |
);
|
31 |
|