File tree 1 file changed +6
-1
lines changed
src/containers/Tenant/ObjectSummary/SchemaTree
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';
10
10
import { schemaApi } from '../../../../store/reducers/schema/schema' ;
11
11
import { tableSchemaDataApi } from '../../../../store/reducers/tableSchemaData' ;
12
12
import type { EPathType , TEvDescribeSchemeResult } from '../../../../types/api/schema' ;
13
+ import { valueIsDefined } from '../../../../utils' ;
13
14
import {
14
15
useQueryExecutionSettings ,
15
16
useTypedDispatch ,
@@ -78,12 +79,16 @@ export function SchemaTree(props: SchemaTreeProps) {
78
79
const childItems = Children . map ( ( childData ) => {
79
80
const { Name = '' , PathType, PathSubType, ChildrenExist} = childData ;
80
81
82
+ const isChildless =
83
+ isChildlessPathType ( PathType , PathSubType ) ||
84
+ ( valueIsDefined ( ChildrenExist ) && ! ChildrenExist ) ;
85
+
81
86
return {
82
87
name : Name ,
83
88
type : mapPathTypeToNavigationTreeType ( PathType , PathSubType ) ,
84
89
// FIXME: should only be explicitly set to true for tables with indexes
85
90
// at the moment of writing there is no property to determine this, fix later
86
- expandable : ! isChildlessPathType ( PathType , PathSubType ) && ChildrenExist ,
91
+ expandable : ! isChildless ,
87
92
} ;
88
93
} ) ;
89
94
You can’t perform that action at this time.
0 commit comments