Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

fix(cmdk): handle no api keys

Greg Richardson2f3343c8f99f
diff --git a/packages/ui/src/components/Command/APIKeys.tsx b/packages/ui/src/components/Command/APIKeys.tsx
index a12ef0b6788..2b51148d29d 100644
--- a/packages/ui/src/components/Command/APIKeys.tsx
+++ b/packages/ui/src/components/Command/APIKeys.tsx
@@ -7,7 +7,7 @@ import { IconAlertCircle } from './../Icon/icons/IconAlertCircle'
const APIKeys = ({ isSubItem = false }) => {
const { setIsOpen, project } = useCommandMenu()
- const { apiKeys } = project
+ const { apiKeys } = project ?? {}
const copyToClipboard = (str: string, callback = () => {}) => {
const focused = window.document.hasFocus()