Skip to content

Commit 8f63fca

Browse files
committed
fix(angular): refactor SentryErrorHandler
1 parent 7f89942 commit 8f63fca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/angular/src/errorhandler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ class SentryErrorHandler implements AngularErrorHandler, OnDestroy {
9191
public constructor(@Inject(SENTRY_ERROR_HANDLER_OPTIONS) @Optional() options?: ErrorHandlerOptions) {
9292
this._options = {
9393
logErrors: true,
94-
...options,
94+
...(options || {}),
9595
};
9696
}
9797

0 commit comments

Comments
 (0)