Skip to content

fix: Fix mutation in contentIndex#2361

Open
derzz wants to merge 1 commit intojackyzha0:v4from
derzz:v4
Open

fix: Fix mutation in contentIndex#2361
derzz wants to merge 1 commit intojackyzha0:v4from
derzz:v4

Conversation

@derzz
Copy link
Copy Markdown

@derzz derzz commented Apr 3, 2026

contentIndex was deleting description and date from linkIndex entries before writing contentIndex.json. This mutated the shared Map used by explorer, search, and graph components, breaking date sorting and other features that rely on these fields.

Create a separate simplified object for JSON output instead of mutating the original entries.

Fixes #2267

@derzz derzz marked this pull request as draft April 3, 2026 20:37
contentIndex is mutating the index entry option, which ca lead to issues
in other components such as explorer sorting by date.
@derzz derzz changed the title Fix mutation in contentIndex fix: Fix mutation in contentIndex Apr 3, 2026
@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 3, 2026

built with Refined Cloudflare Pages Action

⚡ Cloudflare Pages Deployment

Name Status Preview Last Commit
quartz ✅ Ready (View Log) Visit Preview 7965700

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Sort Explorer items by date modified

1 participant