diff --git a/components/cmdk/index.tsx b/components/cmdk/index.tsx index 11b4dfa7..6ac9df6e 100644 --- a/components/cmdk/index.tsx +++ b/components/cmdk/index.tsx @@ -86,6 +86,8 @@ export function CommandDialogDemo() { goto(`/${lastOpenedDatabase}/${docId}`)() } + const { t } = useTranslation() + if (mode === "action") { return } @@ -93,8 +95,6 @@ export function CommandDialogDemo() { return } - const { t } = useTranslation() - return (