Skip to content

Commit bc5ac90

Browse files
committed
Fix table expansion
1 parent b480033 commit bc5ac90

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/compass-global-writes/src/components/shard-zones-table.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,8 @@ export function ShardZonesTable({
101101
columns,
102102
state: {
103103
globalFilter: searchText,
104-
expanded,
104+
// Expand all matching rows when filtering
105+
expanded: searchText !== '' ? true : expanded,
105106
},
106107
onGlobalFilterChange: setSearchText,
107108
onExpandedChange: setExpanded,

0 commit comments

Comments
 (0)