Thinkmill / Thinkmill/keystatic
Adding a `conditional` field to `columns` result in `[object Objeect]` being rendered
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 2.4k
- Forks
- 159
- Avg merge
- 21h 41m
- Merged PRs (30d)
- 2
Description
When you add a conditional field to a collection's column array, the output is [object Object] instead of the value within the conditional.
They also do not show up as a valid column in a collection() config dict in TypeScript.
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
Start by locating the collection column rendering logic and the TypeScript definitions for the collection() config. Reproduce a collection with a conditional column, then trace why its value becomes [object Object]. Done means the conditional value renders correctly and the column is accepted as valid TypeScript configuration.
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
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100