fix: Ensure error.message is a string before checking for specific messages in workflow validator
This commit is contained in:
@@ -965,7 +965,7 @@ export class WorkflowValidator {
|
|||||||
|
|
||||||
// Suggest proper connection structure for workflows with connection errors
|
// Suggest proper connection structure for workflows with connection errors
|
||||||
const hasConnectionErrors = result.errors.some(e =>
|
const hasConnectionErrors = result.errors.some(e =>
|
||||||
e.message && (
|
typeof e.message === 'string' && (
|
||||||
e.message.includes('connection') ||
|
e.message.includes('connection') ||
|
||||||
e.message.includes('Connection') ||
|
e.message.includes('Connection') ||
|
||||||
e.message.includes('Multi-node workflow has no connections')
|
e.message.includes('Multi-node workflow has no connections')
|
||||||
|
|||||||
Reference in New Issue
Block a user