From 8978f1ba23026468ae1de50c20c00d5d1739aaa9 Mon Sep 17 00:00:00 2001 From: ogzhanolguncu Date: Thu, 9 Jan 2025 12:45:39 +0300 Subject: [PATCH] fix: correct disabled stats metric displaying valid count instead of disabled --- .../app/(app)/apis/[apiId]/keys/[keyAuthId]/[keyId]/page.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/dashboard/app/(app)/apis/[apiId]/keys/[keyAuthId]/[keyId]/page.tsx b/apps/dashboard/app/(app)/apis/[apiId]/keys/[keyAuthId]/[keyId]/page.tsx index f94ecb0bd..c90247eb7 100644 --- a/apps/dashboard/app/(app)/apis/[apiId]/keys/[keyAuthId]/[keyId]/page.tsx +++ b/apps/dashboard/app/(app)/apis/[apiId]/keys/[keyAuthId]/[keyId]/page.tsx @@ -209,6 +209,7 @@ export default async function APIKeyDetailPage(props: { stats.forbidden += v.count; } }); + const roleTee = key.workspace.roles.map((role) => { const nested: NestedPermissions = {}; for (const permission of key.workspace.permissions) { @@ -328,7 +329,7 @@ export default async function APIKeyDetailPage(props: { - +