fix: WorkflowEditor TypeScript unknown type cast

This commit is contained in:
Agent Zero
2026-07-30 10:56:57 +02:00
parent 2cd3f30f82
commit c79fbe7fbb
@@ -169,7 +169,7 @@ export function WorkflowEditor({ open, workflow, onClose }: WorkflowEditorProps)
// Show detailed validation errors from backend (422) // Show detailed validation errors from backend (422)
if (err.validationErrors) { if (err.validationErrors) {
const details = Object.entries(err.validationErrors) const details = Object.entries(err.validationErrors)
.map(([field, msgs]) => `${field}: ${msgs.join(', ')}`) .map(([field, msgs]) => `${field}: ${(msgs as string[]).join(', ')}`)
.join('; '); .join('; ');
toast.error(`Validierungsfehler: ${details}`); toast.error(`Validierungsfehler: ${details}`);
} else if (err.detail) { } else if (err.detail) {