Merge pull request #3035 from appwrite/fix-deprecated-scopes-selection

fix: treat deprecated scopes as selectable and fix badge count
This commit is contained in:
Harsh Mahajan
2026-05-08 17:10:27 +05:30
committed by GitHub
@@ -186,7 +186,7 @@
const { detail } = event;
if (detail === 'indeterminate') return;
filteredScopes.forEach((s) => {
if (s.category === category && !s.deprecated) {
if (s.category === category) {
activeScopes[s.scope] = detail;
}
});
@@ -217,7 +217,7 @@
{@const checked = categoryState(category, scopes)}
{@const isLastItem = index === categories.length - 1}
{@const scopesLength = filteredScopes.filter(
(n) => n.category === category && effectiveScopes.includes(n.scope)
(n) => n.category === category && activeScopes[n.scope]
).length}
<Accordion
selectable