File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
src/containers/Tenant/ObjectSummary/SchemaTree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import {selectUserInput} from '../../../../store/reducers/query/query';
1010import { schemaApi } from '../../../../store/reducers/schema/schema' ;
1111import { tableSchemaDataApi } from '../../../../store/reducers/tableSchemaData' ;
1212import type { EPathType , TEvDescribeSchemeResult } from '../../../../types/api/schema' ;
13+ import { valueIsDefined } from '../../../../utils' ;
1314import {
1415 useQueryExecutionSettings ,
1516 useTypedDispatch ,
@@ -78,12 +79,16 @@ export function SchemaTree(props: SchemaTreeProps) {
7879 const childItems = Children . map ( ( childData ) => {
7980 const { Name = '' , PathType, PathSubType, ChildrenExist} = childData ;
8081
82+ const isChildless =
83+ isChildlessPathType ( PathType , PathSubType ) ||
84+ ( valueIsDefined ( ChildrenExist ) && ! ChildrenExist ) ;
85+
8186 return {
8287 name : Name ,
8388 type : mapPathTypeToNavigationTreeType ( PathType , PathSubType ) ,
8489 // FIXME: should only be explicitly set to true for tables with indexes
8590 // at the moment of writing there is no property to determine this, fix later
86- expandable : ! isChildlessPathType ( PathType , PathSubType ) && ChildrenExist ,
91+ expandable : ! isChildless ,
8792 } ;
8893 } ) ;
8994
You can’t perform that action at this time.
0 commit comments