Skip to content

Open-source AI coworkers that each get a computer of their own: a browser, files and tools, with every action decided before it happens and recorded after. Bring any AG-UI agent.

fix(components): drop whitespace-only and empty entries in PUT /catalogue (#379)

Felix-Ayush077b854dd30c
diff --git a/server/src/components/routes.ts b/server/src/components/routes.ts
index b1854d63..970ea812 100644
--- a/server/src/components/routes.ts
+++ b/server/src/components/routes.ts
@@ -95,11 +95,13 @@ export function createComponentRoutes(
>;
if (
typeof name !== "string" ||
- !name ||
+ !name.trim() ||
typeof title !== "string" ||
+ !title.trim() ||
typeof kind !== "string" ||
+ !kind.trim() ||
typeof description !== "string" ||
- !description
+ !description.trim()
) {
return [];
}