Skip to content

Studio: Cannot override seo and navigation with editor({ hidden: true }) since v3.7 #3562

@maximepvrt

Description

@maximepvrt

Environment

x

Version

v3.7.1

Reproduction

Currently, if I try:

property(seo: z.intersection(
    z.object({
      title: z.string().optional(),
      description: z.string().optional(),
      meta: z.array(z.record(z.string(), z.any())).optional(),
      link: z.array(z.record(z.string(), z.any())).optional(),
    }),
    z.record(z.string(), z.any()),
  ).optional().default({})).editor({ hidden: true }),
  navigation: property(z.union([
    z.boolean(),
    z.object({
      title: z.string(),
      description: z.string(),
      icon: z.string(),
    }),
  ]).default(true)).editor({ hidden: true }),

Studio throws an error on load.

Image

Description

Since version 3.7, it is no longer possible to override the seo and navigation attributes as documented in order to add editor({ hidden: true }). Previously, this worked without issues.

Additional context

No response

Logs

Metadata

Metadata

Assignees

No one assigned

    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