From 69c294c0aeb71f5d6dab1984da65e5d06a789479 Mon Sep 17 00:00:00 2001 From: olaservo Date: Sat, 27 Sep 2025 21:05:00 -0700 Subject: [PATCH] Let servers validate invalid input --- client/src/components/ToolsTab.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/client/src/components/ToolsTab.tsx b/client/src/components/ToolsTab.tsx index a8e31c59..c9825983 100644 --- a/client/src/components/ToolsTab.tsx +++ b/client/src/components/ToolsTab.tsx @@ -252,13 +252,19 @@ const ToolsTab = ({ [key]: undefined, }); } else { - // Field has value - convert to number (never store strings) + // Field has value - try to convert to number, but store input either way const num = Number(value); if (!isNaN(num)) { setParams({ ...params, [key]: num, }); + } else { + // Store invalid input as string - let server validate + setParams({ + ...params, + [key]: value, + }); } } }}