Fix issue where array type defaults to object

This commit is contained in:
Ola Hungerford
2025-02-28 07:31:26 -07:00
parent 0e50b68f96
commit 36aa7316ea

View File

@@ -214,7 +214,7 @@ const ToolsTab = ({
description: prop.description,
items: prop.items,
}}
value={(params[key] as JsonValue) ?? {}}
value={(params[key] as JsonValue) ?? (prop.type === "array" ? [] : {})}
onChange={(newValue: JsonValue) => {
setParams({
...params,