Thinkmill / Thinkmill/keystatic

Image component causing Astro to crash

Open
#892 9 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

framework:astro
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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.