-
Notifications
You must be signed in to change notification settings - Fork 37
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Environment
Version
v1.0.0-beta.1
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 workingSomething isn't working