Skip to content

armgit / E2B

Public Imported from GitHub
0

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

added comment and resolved build error

Mish Ushakov051119676a30
diff --git a/apps/web/src/components/Dashboard/Keys.tsx b/apps/web/src/components/Dashboard/Keys.tsx
index 88c37d76e..54bec2451 100644
--- a/apps/web/src/components/Dashboard/Keys.tsx
+++ b/apps/web/src/components/Dashboard/Keys.tsx
@@ -190,8 +190,9 @@ 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 [first, ...rest] = apiKeys
+ const [_first, ...rest] = apiKeys
return rest.sort((a, b) => {
return new Date(b.createdAt).getTime() - new Date(a.createdAt).getTime()
})