mirror of
https://github.com/langgenius/dify.git
synced 2026-02-01 00:21:14 +08:00
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 = () => {
|
||||
return useQuery<ICurrentWorkspace>({
|
||||
queryKey: commonQueryKeys.currentWorkspace,
|
||||
// queryFn: () => post<ICurrentWorkspace>('/workspaces/current', { body: {} }),
|
||||
queryFn: () => post<ICurrentWorkspace>('/workspaces/current'),
|
||||
})
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user