@@ -10,7 +10,7 @@ import {EPathSubType, EPathType} from '../../../types/api/schema';
1010import type { ETenantType } from '../../../types/api/tenant' ;
1111import type { TenantQuery } from '../TenantPages' ;
1212import { TenantTabsGroups } from '../TenantPages' ;
13- import { isDatabaseEntityType , isTopicEntityType } from '../utils/schema' ;
13+ import { isDatabaseEntityType , isEntityWithTopicData } from '../utils/schema' ;
1414
1515interface Badge {
1616 text : string ;
@@ -166,7 +166,7 @@ const SYSTEM_VIEW_PAGES = [overview, schema, nodes, describe, access];
166166
167167const DIR_PAGES = [ overview , topShards , nodes , describe , access ] ;
168168
169- const CDC_STREAM_PAGES = [ overview , consumers , partitions , nodes , describe , access ] ;
169+ const CDC_STREAM_PAGES = [ overview , consumers , partitions , topicData , nodes , describe , access ] ;
170170const CDC_STREAM_IMPL_PAGES = [ overview , nodes , tablets , describe , access ] ;
171171const TOPIC_PAGES = [ overview , consumers , partitions , topicData , nodes , tablets , describe , access ] ;
172172
@@ -231,7 +231,7 @@ function getDatabasePages(databaseType?: ETenantType) {
231231function applyFilters ( pages : Page [ ] , type ?: EPathType , options : GetPagesOptions = { } ) {
232232 let result = pages ;
233233
234- if ( isTopicEntityType ( type ) && ! options . hasTopicData ) {
234+ if ( isEntityWithTopicData ( type ) && ! options . hasTopicData ) {
235235 result = result . filter ( ( p ) => p . id !== TENANT_DIAGNOSTICS_TABS_IDS . topicData ) ;
236236 }
237237
0 commit comments