@@ -16,7 +16,7 @@ import CopyToClipboard from '../../../components/CopyToClipboard/CopyToClipboard
1616import InfoViewer from '../../../components/InfoViewer/InfoViewer' ;
1717import Icon from '../../../components/Icon/Icon' ;
1818
19- import type { EPathSubType , EPathType } from '../../../types/api/schema' ;
19+ import type { EPathSubType , EPathType , TDirEntry } from '../../../types/api/schema' ;
2020import { isColumnEntityType , isIndexTable , isTableType } from '../utils/schema' ;
2121
2222import {
@@ -100,8 +100,8 @@ function ObjectSummary(props: ObjectSummaryProps) {
100100 } ) ;
101101
102102 const { name : tenantName , info : infoTab } = queryParams ;
103- const pathData = _ . get ( data [ tenantName as string ] , 'PathDescription.Self' ) ;
104- const currentSchemaData = _ . get ( data [ currentSchemaPath ] , 'PathDescription.Self' ) ;
103+ const pathData : TDirEntry | undefined = _ . get ( data [ tenantName as string ] , 'PathDescription.Self' ) ;
104+ const currentSchemaData : TDirEntry | undefined = _ . get ( data [ currentSchemaPath ] , 'PathDescription.Self' ) ;
105105
106106 const tableSchema =
107107 currentItem ?. PathDescription ?. Table || currentItem ?. PathDescription ?. ColumnTableDescription ;
@@ -203,7 +203,7 @@ function ObjectSummary(props: ObjectSummaryProps) {
203203 rootPath = { tenantName as string }
204204 // for the root pathData.Name contains the same string as tenantName,
205205 // but without the leading slash
206- rootName = { pathData ? .Name || tenantName }
206+ rootName = { pathData . Name || String ( tenantName ) }
207207 rootType = { pathData . PathType }
208208 currentPath = { currentSchemaPath }
209209 />
0 commit comments