Fix issue where array type defaults to object
This commit is contained in:
parent
0e50b68f96
commit
36aa7316ea
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue