fix config custom code

This commit is contained in:
einhornimmond 2025-10-03 15:46:10 +02:00
parent 7b0e7f05b6
commit 612b99cba6

View File

@ -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) {