diff --git a/src/services/workflow-validator.ts b/src/services/workflow-validator.ts index c8ebe05..046ef18 100644 --- a/src/services/workflow-validator.ts +++ b/src/services/workflow-validator.ts @@ -964,9 +964,9 @@ export class WorkflowValidator { } // Suggest proper connection structure for workflows with connection errors - const hasConnectionErrors = result.errors.some(e => - e.message && ( - e.message.includes('connection') || + const hasConnectionErrors = result.errors.some(e => + typeof e.message === 'string' && ( + e.message.includes('connection') || e.message.includes('Connection') || e.message.includes('Multi-node workflow has no connections') )