Skip to content

Commit 5ebd8c8

Browse files
authored
Merge pull request #3035 from appwrite/fix-deprecated-scopes-selection
fix: treat deprecated scopes as selectable and fix badge count
2 parents e1d3606 + b479873 commit 5ebd8c8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • src/routes/(console)/project-[region]-[project]/overview/api-keys

src/routes/(console)/project-[region]-[project]/overview/api-keys/scopes.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@
186186
const { detail } = event;
187187
if (detail === 'indeterminate') return;
188188
filteredScopes.forEach((s) => {
189-
if (s.category === category && !s.deprecated) {
189+
if (s.category === category) {
190190
activeScopes[s.scope] = detail;
191191
}
192192
});
@@ -217,7 +217,7 @@
217217
{@const checked = categoryState(category, scopes)}
218218
{@const isLastItem = index === categories.length - 1}
219219
{@const scopesLength = filteredScopes.filter(
220-
(n) => n.category === category && effectiveScopes.includes(n.scope)
220+
(n) => n.category === category && activeScopes[n.scope]
221221
).length}
222222
<Accordion
223223
selectable

0 commit comments

Comments
 (0)