AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
fix(rnd): Fix bug caused by different AJV version (#7653)
Zamil Majdy53826ab36056
diff --git a/rnd/autogpt_builder/src/components/Flow.tsx b/rnd/autogpt_builder/src/components/Flow.tsxindex 62c4faafa3..d27b131512 100644--- a/rnd/autogpt_builder/src/components/Flow.tsx+++ b/rnd/autogpt_builder/src/components/Flow.tsx@@ -445,13 +445,14 @@ const FlowEditor: React.FC<{// Populate errors if validation failsvalidate.errors?.forEach((error) => {// Skip error if there's an edge connected- const handle = error.instancePath.split(/[\/.]/)[0];+ const path = error.instancePath || error.schemaPath;+ const handle = path.split(/[\/.]/)[0];if (node.data.connections.some(conn => conn.target === node.id || conn.targetHandle === handle)) {return;}isValid = false;- if (error.instancePath && error.message) {- const key = error.instancePath.slice(1);+ if (path && error.message) {+ const key = path.slice(1);console.log("Error", key, error.message);setNestedProperty(errors, key, error.message[0].toUpperCase() + error.message.slice(1));} else if (error.keyword === "required") {