From a9c8f6cbcff34dc5338c064fab986e4b01451aa2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Sat, 27 May 2023 00:55:58 +0200 Subject: [PATCH] fix: fix default error params setting MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- src/utils/ErrorUtils.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/utils/ErrorUtils.ts b/src/utils/ErrorUtils.ts index 7569b8eb..bca12b64 100644 --- a/src/utils/ErrorUtils.ts +++ b/src/utils/ErrorUtils.ts @@ -95,6 +95,7 @@ export class ErrorUtils { params: HandleErrorParams, defaultParams: HandleErrorParams = defaultErrorParams ): HandleErrorParams { - return { ...defaultParams, ...params }; + params = { ...defaultParams, ...params }; + return params; } } -- 2.34.1