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(frontend/builder): Fix moved blocks disappearing on no-op save (#10927)
Reinier van der Leer381558342a87
diff --git a/autogpt_platform/frontend/src/hooks/useAgentGraph.tsx b/autogpt_platform/frontend/src/hooks/useAgentGraph.tsxindex 7339973889..871693963c 100644--- a/autogpt_platform/frontend/src/hooks/useAgentGraph.tsx+++ b/autogpt_platform/frontend/src/hooks/useAgentGraph.tsx@@ -641,7 +641,7 @@ export default function useAgentGraph(let newSavedAgent: Graph;if (savedAgent && graphsEquivalent(savedAgent, payload)) {console.warn("No need to save: Graph is the same as version on server");- newSavedAgent = savedAgent;+ return savedAgent;} else {console.debug("Saving new Graph version; old vs new:",