|
|
@@ -79,7 +79,16 @@ const AreaTreeSelect: React.FC<AreaTreeSelectProps> = ({
|
|
|
title: child.name,
|
|
|
value: child.id,
|
|
|
key: child.id,
|
|
|
- children: child.children?.length ? formattedTreeData : undefined
|
|
|
+ children: child.children?.map(subChild => ({
|
|
|
+ title: subChild.name,
|
|
|
+ value: subChild.id,
|
|
|
+ key: subChild.id,
|
|
|
+ children: subChild.children?.map(subSubChild => ({
|
|
|
+ title: subSubChild.name,
|
|
|
+ value: subSubChild.id,
|
|
|
+ key: subSubChild.id
|
|
|
+ }))
|
|
|
+ }))
|
|
|
}))
|
|
|
}));
|
|
|
|