Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions packages/core/src/integrations/eventFilters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -211,9 +211,9 @@ function _getEventFilterUrl(event: Event): string | null {
try {
// If there are linked exceptions or exception aggregates we only want to match against the top frame of the "root" (the main exception)
// The root always comes last in linked exceptions
const rootException = [...(event.exception?.values ?? []).reverse()]?.find(
value => value.mechanism?.parent_id === undefined && value.stacktrace?.frames?.length,
);
const rootException = [...(event.exception?.values ?? [])]
.reverse()
.find(value => value.mechanism?.parent_id === undefined && value.stacktrace?.frames?.length);
const frames = rootException?.stacktrace?.frames;
return frames ? _getLastValidUrl(frames) : null;
} catch (oO) {
Expand Down
Loading