From f6206305d503da7af36843eab5b7cc17df652748 Mon Sep 17 00:00:00 2001 From: Oliver Date: Wed, 18 Feb 2026 14:15:34 +1100 Subject: [PATCH] [UI] Log Form error (#11363) * [UI] Log console error for invalid field - Help catch form issues during CI * Use console logging --- src/frontend/src/components/forms/fields/ApiFormField.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/frontend/src/components/forms/fields/ApiFormField.tsx b/src/frontend/src/components/forms/fields/ApiFormField.tsx index fe5964eec5..88bbf034cc 100644 --- a/src/frontend/src/components/forms/fields/ApiFormField.tsx +++ b/src/frontend/src/components/forms/fields/ApiFormField.tsx @@ -241,6 +241,11 @@ export function ApiFormField({ /> ); default: + // This should never happen - it represents a critical UI issue which should be caught in CI + console.error( + `Invalid field type for field '${fieldName}': '${fieldDefinition.field_type}'` + ); + return ( Invalid field type for field '{fieldName}': '