mirror of
https://github.com/langgenius/dify.git
synced 2026-03-23 07:17:55 +08:00
refactor(use-common): simplify current workspace query function by removing unnecessary body parameter
This commit is contained in:
@ -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'),
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user