From acf30b077ab4c1ee665b1e2493a9f0a4931af831 Mon Sep 17 00:00:00 2001 From: olaservo Date: Sun, 19 Oct 2025 11:01:37 -0700 Subject: [PATCH] Handle tri state nullable boolean in null checkbox --- client/src/components/ToolsTab.tsx | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/client/src/components/ToolsTab.tsx b/client/src/components/ToolsTab.tsx index 8776e553..740cc5ed 100644 --- a/client/src/components/ToolsTab.tsx +++ b/client/src/components/ToolsTab.tsx @@ -181,9 +181,16 @@ const ToolsTab = ({ ...params, [key]: checked ? null - : prop.type === "boolean" - ? false - : prop.default, + : prop.default !== null + ? prop.default + : prop.type === "boolean" + ? false + : prop.type === "string" + ? "" + : prop.type === "number" || + prop.type === "integer" + ? undefined + : undefined, }) } />