From 21914c0eb19ab9bfee6b0d65fe8e9876154f9d2c Mon Sep 17 00:00:00 2001 From: Lukas Stracke Date: Thu, 20 Jul 2023 11:32:13 +0200 Subject: [PATCH] cleanup --- packages/browser/src/integrations/linkederrors.ts | 5 +++-- packages/utils/src/aggregate-errors.ts | 4 +++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/packages/browser/src/integrations/linkederrors.ts b/packages/browser/src/integrations/linkederrors.ts index a27c71369638..709ba8228107 100644 --- a/packages/browser/src/integrations/linkederrors.ts +++ b/packages/browser/src/integrations/linkederrors.ts @@ -54,10 +54,11 @@ export class LinkedErrors implements Integration { return event; } + const options = client.getOptions(); applyAggregateErrorsToEvent( exceptionFromError, - client.getOptions().stackParser, - client.getOptions().maxValueLength, + options.stackParser, + options.maxValueLength, self._key, self._limit, event, diff --git a/packages/utils/src/aggregate-errors.ts b/packages/utils/src/aggregate-errors.ts index d6f2b7957851..4547203b4fd2 100644 --- a/packages/utils/src/aggregate-errors.ts +++ b/packages/utils/src/aggregate-errors.ts @@ -35,7 +35,9 @@ export function applyAggregateErrorsToEvent( event.exception.values, originalException, 0, - ), maxValueLimit); + ), + maxValueLimit, + ); } }