From 89f56bd038a2fd9db81467cbb0cff57d6983afe4 Mon Sep 17 00:00:00 2001 From: Pavel Date: Thu, 17 Jul 2025 16:39:22 +0200 Subject: [PATCH] fix: Ensure error.message is a string before checking for specific messages in workflow validator --- src/services/workflow-validator.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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') )