Fix issue where array type defaults to object
This commit is contained in:
@@ -214,7 +214,7 @@ const ToolsTab = ({
|
|||||||
description: prop.description,
|
description: prop.description,
|
||||||
items: prop.items,
|
items: prop.items,
|
||||||
}}
|
}}
|
||||||
value={(params[key] as JsonValue) ?? {}}
|
value={(params[key] as JsonValue) ?? (prop.type === "array" ? [] : {})}
|
||||||
onChange={(newValue: JsonValue) => {
|
onChange={(newValue: JsonValue) => {
|
||||||
setParams({
|
setParams({
|
||||||
...params,
|
...params,
|
||||||
|
|||||||
Reference in New Issue
Block a user