Skip to content

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): Allow importing agent file with empty description (#8670)

Reinier van der Leere81083d9ab16
diff --git a/autogpt_platform/frontend/src/components/agent-import-form.tsx b/autogpt_platform/frontend/src/components/agent-import-form.tsx
index 64ca5f8a31..f7fc72ba2a 100644
--- a/autogpt_platform/frontend/src/components/agent-import-form.tsx
+++ b/autogpt_platform/frontend/src/components/agent-import-form.tsx
@@ -145,7 +145,7 @@ export const AgentImportForm: React.FC<
);
if (
!["name", "description", "nodes", "links"].every(
- (key) => !!obj[key],
+ (key) => key in obj && obj[key] != null,
)
) {
throw new Error(