From fed0a3dae15f56838d2206a188d05b04ff07dd39 Mon Sep 17 00:00:00 2001 From: Ayush7614 Date: Sat, 5 Sep 2026 15:39:21 +0530 Subject: [PATCH] fix(components): drop whitespace-only and empty entries in PUT /catalogue --- server/src/components/routes.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/server/src/components/routes.ts b/server/src/components/routes.ts index b1854d632..970ea812d 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 []; }