From: Jérôme Benoit Date: Fri, 26 May 2023 22:55:58 +0000 (+0200) Subject: fix: fix default error params setting X-Git-Tag: v1.2.15~36 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=a9c8f6cbcff34dc5338c064fab986e4b01451aa2;p=e-mobility-charging-stations-simulator.git fix: fix default error params setting Signed-off-by: Jérôme Benoit --- 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; } }