Skip to content

fix: exclude trashed snippets from the inactive status count#410

Merged
imantsk merged 1 commit into
core-betafrom
fix/inactive-count-excludes-trashed
Jun 18, 2026
Merged

fix: exclude trashed snippets from the inactive status count#410
imantsk merged 1 commit into
core-betafrom
fix/inactive-count-excludes-trashed

Conversation

@imantsk

@imantsk imantsk commented Jun 18, 2026

Copy link
Copy Markdown
Member

Summary

Trashed snippets were counted in the Inactive status tally on the manage screen. The badge showed n+1 while items sat in the trash and corrected after permanent delete.

Changes

  • WithFilteredSnippetsContext.tsx: a trashed snippet (active = -1, active resolves to false) is no longer pushed into the inactive bucket; it lands only in trashed.

Scope

  • Counts only; list contents were already correct (server filter excludes trashed).

@imantsk imantsk merged commit 9fec295 into core-beta Jun 18, 2026
9 checks passed
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.

1 participant