We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a61f8d9 commit d68d4c9Copy full SHA for d68d4c9
1 file changed
src/containers/Tenant/Query/Preview/Preview.tsx
@@ -1,3 +1,4 @@
1
+import {useTopicDataAvailable} from '../../../../store/reducers/capabilities/hooks';
2
import {EPathType} from '../../../../types/api/schema';
3
import {isTableType} from '../../utils/schema';
4
import i18n from '../i18n';
@@ -14,11 +15,12 @@ export function PreviewContainer(props: PreviewContainerProps) {
14
15
const {type} = props;
16
const isTable = isTableType(type);
17
const isTopic = type === EPathType.EPathTypePersQueueGroup;
18
+ const isTopicPreviewAvailable = useTopicDataAvailable();
19
20
if (isTable) {
21
return <TablePreview {...props} />;
22
}
- if (isTopic) {
23
+ if (isTopic && isTopicPreviewAvailable) {
24
return <TopicPreview {...props} />;
25
26
0 commit comments