mirror of https://github.com/langgenius/dify.git
refactor(use-common): simplify current workspace query function by removing unnecessary body parameter
This commit is contained in:
parent
68615eec04
commit
d308c34842
|
|
@ -107,7 +107,6 @@ export const useLangGeniusVersion = (currentVersion?: string | null, enabled?: b
|
||||||
export const useCurrentWorkspace = () => {
|
export const useCurrentWorkspace = () => {
|
||||||
return useQuery<ICurrentWorkspace>({
|
return useQuery<ICurrentWorkspace>({
|
||||||
queryKey: commonQueryKeys.currentWorkspace,
|
queryKey: commonQueryKeys.currentWorkspace,
|
||||||
// queryFn: () => post<ICurrentWorkspace>('/workspaces/current', { body: {} }),
|
|
||||||
queryFn: () => post<ICurrentWorkspace>('/workspaces/current'),
|
queryFn: () => post<ICurrentWorkspace>('/workspaces/current'),
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue