Skip to content

Data collection item editing is not working #197

@sebworks2024

Description

@sebworks2024

Environment

Version
v1.0.0-beta.1

Image

Version

v1.0.0-beta.1

Reproduction

Try and edit a collection item body in the editor. Observe the errors in the console and the UI doesn't get updated.

Description

Unable to edit a data collection item body in the editor

Additional context

Schema

portfolioCollection: defineCollection({
  type: 'data',
  source: 'portfolio/*.md',
  schema: z.object({
    title: z.string().nonempty(),
    link: z.string().nonempty(),
    logo: z.string().nonempty().editor({ input: 'media' }),
    image: z.string().nonempty().editor({ input: 'media' }),
    order: z.number(),
    show_on_homepage: z.boolean(),
    exited: z.boolean()
  })
}),

Content


title: Adden
link: https://news.harvard.edu/gazette/story/2021/05/researchers-design-long-lasting-solid-state-lithium-battery/
logo: /images/adden-logo.jpeg
image: /images/adden-team-crop.png
order: 56
show_on_homepage: true
exited: false

Originating from Professor Xin Li's lab at Harvard, Adden is developing a stable, lithium-metal, solid-state battery that charges much faster and is safer than current lithium-metal batteries.

Logs

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions