From 950e1007cc2a1760a28c6f79011a158fe009e3cb Mon Sep 17 00:00:00 2001 From: Paula Stachova Date: Tue, 29 Oct 2024 12:46:29 +0100 Subject: [PATCH] fix reset --- .../compass-global-writes/src/components/shard-zones-table.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/compass-global-writes/src/components/shard-zones-table.tsx b/packages/compass-global-writes/src/components/shard-zones-table.tsx index 3453c36b613..6d3952235d0 100644 --- a/packages/compass-global-writes/src/components/shard-zones-table.tsx +++ b/packages/compass-global-writes/src/components/shard-zones-table.tsx @@ -122,7 +122,7 @@ export function ShardZonesTable({ const handleSearchTextChange = useCallback( (e: React.ChangeEvent) => { - tableRef.current.setGlobalFilter(e.currentTarget.value); + tableRef.current.setGlobalFilter(e.currentTarget?.value || ''); }, [tableRef] );