Thinkmill / Thinkmill/keystatic
Image component causing Astro to crash
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 2.4k
- Forks
- 159
- Avg merge
- 21h 41m
- Merged PRs (30d)
- 2
Description
When you use fields.image and save item without image selected the image component is removing the key from mdoc frontmatter, which in turn i causing Astro to crash as the field is missing from schema...
I think instead empty string should be saved as value
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue by using fields.image without selecting an image, saving the item, and checking the resulting mdoc frontmatter. Trace the image component's save behavior and verify that the field remains present with an empty string so Astro no longer crashes when validating the schema.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- content
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100