diff --git a/package-lock.json b/package-lock.json index a441b33e16..c6745cd864 100644 --- a/package-lock.json +++ b/package-lock.json @@ -52,7 +52,7 @@ "use-query-params": "^2.2.1", "uuid": "^10.0.0", "web-vitals": "^1.1.2", - "ydb-ui-components": "^4.3.2", + "ydb-ui-components": "^4.4.0", "zod": "^3.24.1" }, "devDependencies": { @@ -29109,9 +29109,9 @@ } }, "node_modules/ydb-ui-components": { - "version": "4.3.2", - "resolved": "https://registry.npmjs.org/ydb-ui-components/-/ydb-ui-components-4.3.2.tgz", - "integrity": "sha512-rWGgCfhvBsJCoTbJ9xo9l7yoCb3a0pxY/0G7vG2rrcXs9jregvqHNBORnFxFl4LgxNUCfH4A4yhYd3MdlLNLxw==", + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/ydb-ui-components/-/ydb-ui-components-4.4.0.tgz", + "integrity": "sha512-fKHy3jvFPSDNO/mKhguv1eEdXOKugzXNnSqEdehOqIAcFy8PXq5bn8WUThk7sVggBHLpdNL472V1eCUJBQftkA==", "dependencies": { "@bem-react/classname": "^1.6.0", "react-list": "^0.8.17", diff --git a/package.json b/package.json index c2c2c33063..4a3c0ea64c 100644 --- a/package.json +++ b/package.json @@ -54,7 +54,7 @@ "use-query-params": "^2.2.1", "uuid": "^10.0.0", "web-vitals": "^1.1.2", - "ydb-ui-components": "^4.3.2", + "ydb-ui-components": "^4.4.0", "zod": "^3.24.1" }, "scripts": { diff --git a/src/containers/Tenant/ObjectSummary/SchemaTree/SchemaTree.tsx b/src/containers/Tenant/ObjectSummary/SchemaTree/SchemaTree.tsx index eb04cb650f..988c1f609f 100644 --- a/src/containers/Tenant/ObjectSummary/SchemaTree/SchemaTree.tsx +++ b/src/containers/Tenant/ObjectSummary/SchemaTree/SchemaTree.tsx @@ -76,14 +76,14 @@ export function SchemaTree(props: SchemaTreeProps) { const {PathDescription: {Children = []} = {}} = schemaData; const childItems = Children.map((childData) => { - const {Name = '', PathType, PathSubType} = childData; + const {Name = '', PathType, PathSubType, ChildrenExist} = childData; return { name: Name, type: mapPathTypeToNavigationTreeType(PathType, PathSubType), // FIXME: should only be explicitly set to true for tables with indexes // at the moment of writing there is no property to determine this, fix later - expandable: !isChildlessPathType(PathType, PathSubType), + expandable: !isChildlessPathType(PathType, PathSubType) && ChildrenExist, }; }); diff --git a/src/types/api/schema/schema.ts b/src/types/api/schema/schema.ts index 6565a89da9..3ee01cc19b 100644 --- a/src/types/api/schema/schema.ts +++ b/src/types/api/schema/schema.ts @@ -112,6 +112,7 @@ export interface TDirEntry { PathVersion?: string; PathSubType?: EPathSubType; Version?: TPathVersion; + ChildrenExist?: boolean; } interface TDomainDescription {