From 612b99cba6597aeb899d06c54e964680cc2814bc Mon Sep 17 00:00:00 2001 From: einhornimmond Date: Fri, 3 Oct 2025 15:46:10 +0200 Subject: [PATCH] fix config custom code --- config-schema/src/log4js-config/coloredContext.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config-schema/src/log4js-config/coloredContext.ts b/config-schema/src/log4js-config/coloredContext.ts index 1ebb6b219..1f238fcdb 100644 --- a/config-schema/src/log4js-config/coloredContext.ts +++ b/config-schema/src/log4js-config/coloredContext.ts @@ -33,7 +33,7 @@ function composeDataString(data: (string | Object)[]): string { return data .map((d) => { // if it is a object and his toString function return only garbage - if (typeof d === 'object' && d.toString() === '[object Object]') { + if (d && typeof d === 'object' && d.toString() === '[object Object]') { return inspect(d, ) } if (d) {