fix: Ensure error.message is a string before checking for specific messages in workflow validator

This commit is contained in:
Pavel
2025-07-17 16:39:22 +02:00
parent 8025d31e63
commit 89f56bd038

View File

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