Skip to content

Commit caf789a

Browse files
committed
Resolve undefined typescript issue
1 parent f862390 commit caf789a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/react-router/src/server/lowQualityTransactionsFilterIntegration.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ function _lowQualityTransactionsFilterIntegration(options: NodeOptions): {
2020
return event;
2121
}
2222

23-
if (matchedRegexes.some(regex => event.transaction?.match(regex))) {
23+
const transaction = event.transaction;
24+
25+
if (matchedRegexes.some(regex => transaction.match(regex))) {
2426
options.debug && logger.log('[ReactRouter] Filtered node_modules transaction:', event.transaction);
2527
return null;
2628
}

0 commit comments

Comments
 (0)