diff --git a/client/src/components/Tree/ObjectTree.tsx b/client/src/components/Tree/ObjectTree.tsx
index ef4b0d2..cfa6346 100644
--- a/client/src/components/Tree/ObjectTree.tsx
+++ b/client/src/components/Tree/ObjectTree.tsx
@@ -51,9 +51,9 @@ const ObjectTree = ({
if (selectedDistrict) {
return (
-
-
-
+
+
+
)
} else {
@@ -84,12 +84,12 @@ const TypeTree = ({
return (
-
+
{`${label} ${count ? `(${count})` : ''}`}
{Array.isArray(objectList) && objectList.map(list => (
-
+
))}
@@ -124,8 +124,8 @@ const ObjectList = ({
)
const navLinks = useMemo(() => (
- Array.isArray(data) ? data.map((type) => (
- setCurrentObjectId(map_id, type.object_id)}>
+ Array.isArray(data) ? data.map((type, index) => (
+ setCurrentObjectId(map_id, type.object_id)}>
{type.caption ? type.caption : 'Без названия'}
)) : null
@@ -140,14 +140,6 @@ const ObjectList = ({
)
-
- // return (
- //
{ setSelectedObjectType(map_id, id) }} rightSection={} p={0} label={`${label} ${count ? `(${count})` : ''}`}>
- // {Array.isArray(data) && data.map((type) => (
- // setCurrentObjectId(map_id, type.object_id)} />
- // ))}
- //
- // )
}
export default ObjectTree
\ No newline at end of file