Skip to content

Commit e4e7060

Browse files
committed
Apply workaround for LG-4796
1 parent 672df4e commit e4e7060

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

packages/compass-indexes/src/components/indexes-table/indexes-table.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from 'react';
1+
import React, { useState } from 'react';
22
import {
33
css,
44
cx,
@@ -95,6 +95,7 @@ export function IndexesTable<T>({
9595
columns,
9696
data,
9797
}: IndexesTableProps<T>) {
98+
const [expanded, setExpanded] = useState<true | Record<string, boolean>>({});
9899
const [sorting, setSorting] = useTabState<SortingState>(
99100
`${id}-sorting-state`,
100101
[]
@@ -104,7 +105,8 @@ export function IndexesTable<T>({
104105
columns,
105106
enableSortingRemoval: false,
106107
withPagination: false,
107-
state: { sorting },
108+
state: { sorting, expanded },
109+
onExpandedChange: setExpanded,
108110
onSortingChange: setSorting,
109111
});
110112

0 commit comments

Comments
 (0)