Skip to content

armgit / E2B

Public Imported from GitHub
0

Open-source, secure environment with real-world tools for enterprise-grade agents.

undo last change to api keys to avoid confusion

Mish Ushakovb5e6894c128e
diff --git a/apps/web/src/components/Dashboard/Keys.tsx b/apps/web/src/components/Dashboard/Keys.tsx
index 4bcd51cbe..8db103ca0 100644
--- a/apps/web/src/components/Dashboard/Keys.tsx
+++ b/apps/web/src/components/Dashboard/Keys.tsx
@@ -190,10 +190,8 @@ export const KeysContent = ({
setIsKeyDialogOpen(false)
}
- // remove the first API key from the list (for legacy reasons) and sort the rest by creation date
const sortedApiKeys = useMemo(() => {
- const rest = apiKeys.slice(1)
- return rest.sort((a, b) => {
+ return apiKeys.sort((a, b) => {
return new Date(b.createdAt).getTime() - new Date(a.createdAt).getTime()
})
}, [apiKeys])