Skip to content

Commit 3c99ba2

Browse files
committed
allow index tables preview
1 parent 811c030 commit 3c99ba2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/containers/Tenant/ObjectSummary/ObjectSummary.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ import {
4444
PaneVisibilityToggleButtons,
4545
paneVisibilityToggleReducerCreator,
4646
} from '../utils/paneVisibilityToggleHelpers';
47-
import {isIndexTableType, isTableType} from '../utils/schema';
47+
import {isTableType} from '../utils/schema';
4848

4949
import {ObjectTree} from './ObjectTree';
5050
import {SchemaActions} from './SchemaActions';
@@ -77,7 +77,7 @@ export function ObjectSummary({
7777
onExpandSummary,
7878
isCollapsed,
7979
}: ObjectSummaryProps) {
80-
const {path, database, type, subType, databaseFullPath} = useCurrentSchema();
80+
const {path, database, type, databaseFullPath} = useCurrentSchema();
8181

8282
const dispatch = useTypedDispatch();
8383
const {handleSchemaChange} = useTenantQueryParams();
@@ -404,7 +404,7 @@ export function ObjectSummary({
404404
const relativePath = transformPath(path, databaseFullPath);
405405

406406
const renderCommonInfoControls = () => {
407-
const showPreview = isTableType(type) && !isIndexTableType(subType);
407+
const showPreview = isTableType(type);
408408
return (
409409
<React.Fragment>
410410
{showPreview &&

src/containers/Tenant/utils/controls.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export const getSchemaControls =
7777
column_table: openPreview,
7878
system_table: openPreview,
7979

80-
index_table: undefined,
80+
index_table: openPreview,
8181
topic: isTopicPreviewAvailable && !isCdcTopic ? openPreview : undefined,
8282
stream: undefined,
8383

0 commit comments

Comments
 (0)