Skip to content

Commit

Permalink
fix type
Browse files Browse the repository at this point in the history
  • Loading branch information
ritch committed Jan 10, 2025
1 parent e5b4fbb commit 3c44faa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/packages/core/src/plugins/SchemaIO/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export function SchemaIOComponent(props) {

function coerceValue(value, schema) {
// coerce the value to None if it is an empty string or empty array
if (schema.type === "list" && Array.isArray(value) && value.length === 0) {
if (schema.type === "array" && Array.isArray(value) && value.length === 0) {
return null;
}
if (schema.type === "string" && value === "") {
Expand Down

0 comments on commit 3c44faa

Please sign in to comment.