Skip to content

Commit d281446

Browse files
kamilkisielan1ru4l
authored andcommitted
comments
1 parent 366b78b commit d281446

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/web/app/src/pages/target-insights-new.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -834,6 +834,8 @@ export const columns: ColumnDef<Trace>[] = [
834834
side="bottom"
835835
className="cursor-auto overflow-hidden rounded-lg p-2 text-xs text-gray-100 shadow-lg sm:min-w-[150px]"
836836
onClick={e => {
837+
// Prevent the click event from bubbling up to the row,
838+
// which would trigger the sheet with trace details to open
837839
e.stopPropagation();
838840
}}
839841
>
@@ -1403,6 +1405,7 @@ function Filters() {
14031405
'http.url': [],
14041406
});
14051407

1408+
// Stores the update handlers in a ref to prevent unnecessary re-renders
14061409
const updateHandlersRef = useRef(new Map<FilterKeys, (value: any) => void>());
14071410
const updateFilter = useCallback(
14081411
<$Key extends FilterKeys>(key: $Key): ((value: FilterState[$Key]) => void) => {

0 commit comments

Comments
 (0)