|
|
@@ -4,7 +4,7 @@ import { Button } from '@d8d/shared-ui-components/components/ui/button';
|
|
|
import { Badge } from '@d8d/shared-ui-components/components/ui/badge';
|
|
|
import { cn } from '@d8d/shared-ui-components/utils';
|
|
|
import { useQuery } from '@tanstack/react-query';
|
|
|
-import { areaClient } from '../api/areaClient';
|
|
|
+import { areaClient, areaClientManager } from '../api/areaClient';
|
|
|
import type { AreaNode } from '../types/area';
|
|
|
|
|
|
interface AreaTreeAsyncProps {
|
|
|
@@ -46,7 +46,7 @@ const SubTreeLoader: React.FC<SubTreeLoaderProps> = ({
|
|
|
const { data: subTreeData, isLoading: isSubTreeLoading } = useQuery({
|
|
|
queryKey: ['areas-subtree', nodeId],
|
|
|
queryFn: async () => {
|
|
|
- const res = await areaClient.index.$get({
|
|
|
+ const res = await areaClientManager.get().index.$get({
|
|
|
query: {
|
|
|
page: 1,
|
|
|
pageSize: 100 ,
|