From 74f9c0ff50e96f0f7f86cc5c9e69fc28c00c109b Mon Sep 17 00:00:00 2001 From: Dotta Date: Mon, 27 Jul 2026 15:25:46 +0000 Subject: [PATCH] fix: handle optional config validation errors Co-Authored-By: Paperclip --- server/src/routes/plugins.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/routes/plugins.ts b/server/src/routes/plugins.ts index a2b9abe75da..909d2ce5a3b 100644 --- a/server/src/routes/plugins.ts +++ b/server/src/routes/plugins.ts @@ -2653,7 +2653,7 @@ export function pluginRoutes( supported: true, valid: false, warningCount: 0, - errorCount: validation.errors.length, + errorCount: validation.errors?.length ?? 0, secretRefCount: 0, configKeyCount: Object.keys(body.configJson).length, outcome: "schema_validation_failed",