File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
src/containers/Tenant/Query/Preview Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 1+ import { useTopicDataAvailable } from '../../../../store/reducers/capabilities/hooks' ;
12import { EPathType } from '../../../../types/api/schema' ;
23import { isTableType } from '../../utils/schema' ;
34import i18n from '../i18n' ;
@@ -14,11 +15,12 @@ export function PreviewContainer(props: PreviewContainerProps) {
1415 const { type} = props ;
1516 const isTable = isTableType ( type ) ;
1617 const isTopic = type === EPathType . EPathTypePersQueueGroup ;
18+ const isTopicPreviewAvailable = useTopicDataAvailable ( ) ;
1719
1820 if ( isTable ) {
1921 return < TablePreview { ...props } /> ;
2022 }
21- if ( isTopic ) {
23+ if ( isTopic && isTopicPreviewAvailable ) {
2224 return < TopicPreview { ...props } /> ;
2325 }
2426
You can’t perform that action at this time.
0 commit comments