mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
fix: scopes missing singular case
This commit is contained in:
@@ -96,8 +96,11 @@
|
||||
{category}
|
||||
</svelte:fragment>
|
||||
<svelte:fragment slot="subtitle">
|
||||
({allScopes.filter((n) => n.category === category && scopes.includes(n.scope))
|
||||
.length} Scopes)
|
||||
{@const scopesLength = allScopes.filter(
|
||||
(n) => n.category === category && scopes.includes(n.scope)
|
||||
).length}
|
||||
({scopesLength}
|
||||
{scopesLength === 1 ? 'Scope' : 'Scopes'})
|
||||
</svelte:fragment>
|
||||
<div class="form">
|
||||
<FormList>
|
||||
|
||||
Reference in New Issue
Block a user