From b4798736aab446b4e1ce1215d606b60b3f8d242e Mon Sep 17 00:00:00 2001 From: harsh mahajan Date: Fri, 8 May 2026 16:56:03 +0530 Subject: [PATCH] fix: treat deprecated scopes as selectable and fix badge count --- .../overview/api-keys/scopes.svelte | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/routes/(console)/project-[region]-[project]/overview/api-keys/scopes.svelte b/src/routes/(console)/project-[region]-[project]/overview/api-keys/scopes.svelte index 1209581be..08963ba28 100644 --- a/src/routes/(console)/project-[region]-[project]/overview/api-keys/scopes.svelte +++ b/src/routes/(console)/project-[region]-[project]/overview/api-keys/scopes.svelte @@ -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}