Skip to content

Commit

Permalink
fix: Ensure ignoreErrors only applies to error events
Browse files Browse the repository at this point in the history
  • Loading branch information
mydea committed Mar 22, 2023
1 parent 0e3552d commit f23755e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/core/src/integrations/inboundfilters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@ export function _shouldDropEvent(event: Event, options: Partial<InboundFiltersOp
}

function _isIgnoredError(event: Event, ignoreErrors?: Array<string | RegExp>): boolean {
if (!ignoreErrors || !ignoreErrors.length) {
// If event.type, this is not an error
if (event.type || !ignoreErrors || !ignoreErrors.length) {
return false;
}

Expand Down

0 comments on commit f23755e

Please sign in to comment.