Skip to content

sort on ListView renders blank repeater in Edit View Config β€” z.union hides items from SchemaForm πŸ› Β #3379

Description

@akarma-synetal

Problem

In Edit View Config β†’ Columns & Filters β†’ Sort, clicking "Add sort" produces an empty row with no field picker or order dropdown. Users cannot configure default sort at all.

Cause

ListViewSchema.sort is defined as a union wrapping both a legacy string form and the canonical array form. The array definition ends up inside an anyOf branch, but the ObjectUI SchemaForm repeater only reads schema.items at the top level β€” it finds undefined and renders zero sub-fields.

Suggested fix

Drop the legacy string variant and use the canonical z.array(z.object({ field, order })) directly. The string form was already deprecated in #3373 and its removal was deferred to a separate cycle.

Related

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions