diff --git a/app/srv/ws/sync/editor/code/build-code.ts b/app/srv/ws/sync/editor/code/build-code.ts index 3420e571..ebb15d99 100644 --- a/app/srv/ws/sync/editor/code/build-code.ts +++ b/app/srv/ws/sync/editor/code/build-code.ts @@ -109,7 +109,8 @@ if (typeof global.server_hook === "function") { } ancestors.push(val); - if (val.constructor && val.constructor.name !== "Object"){ + if (val.constructor && + !['Object', 'Array'].includes(val.constructor.name)) { if (val.constructor.name === 'Error') { return '[Error] ' + val.message; }