Skip to content

Commit 1afabcd

Browse files
authored
fix: use current config in linkederrors (#4328)
1 parent c497238 commit 1afabcd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/browser/src/integrations/linkederrors.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ export class LinkedErrors implements Integration {
4848
*/
4949
public setupOnce(): void {
5050
addGlobalEventProcessor((event: Event, hint?: EventHint) => {
51-
return getCurrentHub().getIntegration(LinkedErrors) ? _handler(this._key, this._limit, event, hint) : event;
51+
const self = getCurrentHub().getIntegration(LinkedErrors);
52+
return self ? _handler(self._key, self._limit, event, hint) : event;
5253
});
5354
}
5455
}

0 commit comments

Comments
 (0)