Skip to content

Comments

Fix mutation from system.time.value reference in spell filter#21430

Merged
stwlam merged 1 commit intofoundryvtt:v13-devfrom
In3luki:fix-spell-time-filter
Feb 3, 2026
Merged

Fix mutation from system.time.value reference in spell filter#21430
stwlam merged 1 commit intofoundryvtt:v13-devfrom
In3luki:fix-spell-time-filter

Conversation

@In3luki
Copy link
Collaborator

@In3luki In3luki commented Feb 3, 2026

The filter stored a reference to system.time.value after normalizing it during initialization. The fromUuid call to open the item sheet overwrote the compendium index entry, mutating the same object and causing the filter to use the non-normalized time.

This would have been fixed by #20492 🥲

Closes #21428

@stwlam stwlam merged commit 358fd9e into foundryvtt:v13-dev Feb 3, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Compendium Browser filters spells incorrectly after opening spell sheet

2 participants